I see that you are using levelColorsGradient: false
when setting up the first sensor (g1). This should do this in accordance with the documentation.
The document says
Select a color representation based on the sector of the displayed value. This means that the color will remain green for all values ββbelow 33%, yellow from 34% to 66%. Take it over 67% and your indicator will glow red. These are the three colors by default.
If you want to define your own colors, the document says,
// levelColors: string []
// indicator colors, from bottom to top, in RGB format
Create your own color variable by changing the RGB values ββbelow for the desired colors.
var myColors = [ "#a9d70b", "#f9c802", "#ff0000" ]
And then set this parameter when setting up the sensors.
levelColors : myColors
Or, if you want to keep everything together, skip the variable and do it. I change the average to orange.
levelColors : [ "#a9d70b", "#F27C07", "#ff0000" ]
Is an indicator showing default colors right now? I donβt think you can change sectors, they are based on percentages.
source share