[[chartBMSCurrent]]
title = BMS Main Current
width = 100%
connectNulls = true
[[[Imain]]]
zIndex = 1
name = "I main"
colors_enabled = 1
color1_position = < -1
color1 = "#ff2c2c"
color2_position = < 1
color2 = "#fafa2a"
color3_position = > 1.1
color3 = "#3cb043"
Hello,
Here https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation you can find:
Color can be set to change based on the value being displayed. You can specify up to 7 colors. Both the color and the color position must be specified. Once the value rises above a given position, the corresponding color will be set. In this example, the wind speed has exceeded color7_position, so color7 is displayed. If the wind speed were 24 MPH, color4 would be used. color1 is used as the default if the value is below all set positions (if wind speed is <3 MPH in this example).
[[ImainGauge]]
title = Liontron Main Current
type = gauge
[[[Imain]]]
rounded = 1
colors_enabled = 1
color1_position = -1
color1 = "#ff2c2c"
color2_position = 1
color2 = "#fafa2a"
color3_position = 3
color3 = "#3cb043"
color4_position = 20
color4 = "#21D300"
color5_position = 40
color5 = "#39FF14"
yAxis_min = -10
yAxis_max = 50
[[chartBMSCurrent]]
title = BMS Main Current
# width = 100%
connectNulls = true
[[[Imain]]]
zIndex = 1