OH3 Widget - OH Trend component line color

dear all

it’s possible to change the color of trendline?

- component: oh-trend

      config:
        trendItem: =[props.itemTemp]
        style:
          --f7-theme-color-bg-color: transparent
          background: var(--f7-theme-color-bg-color)
          filter: opacity(30%)
          position: absolute
          width: 100%
          height: 100%
          top: 0
          left: 2
          z-index: 1

thanks in advance

- component: oh-trend
  config:
    trendGradient: ['#f00']

Maybe this link might be helpfull …

thanks crnjan, it works and the liink is very useful,
But why other properties doesn’t works in OH?

I try with

- component: oh-trend
  config:
    trendRadius: ['1']

and also with

- component: oh-trend
  config:
    trendRadius: '1'

but it has no effect

thanks again for your help

Not all properties seems to be mapped as far as I can see from code.

Only trendGradient (maps to gradient), trendWidth (maps to width) and trendStrokeWidth (maps to stroke-width) are exposed.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.