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).
[[exampleGauge]] title = Example gauge chart type = gauge [[[windGust]]] 
rounded = 1 colors_enabled = 1 color1_position = 3 color1 = "#1278c8" 
color2_position = 7 color2 = "#1fafdd" color3_position = 12 color3 = 
"#71bc3c" color4_position = 20 color4 = "#ffae00" color5_position = 30 
color5 = "#ff7f00" color6_position = 40 color6 = "#ff4500" color7_position 
= 50 color7 = "#9f00c5" yAxis_min = 0 yAxis_max = 70

Stefan Gliessmann schrieb am Montag, 17. März 2025 um 14:01:04 UTC+1:

Hello -

I am wondering if it is possible to have the graph in different colors 
depending on the value.

I tried something like this:

    [[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"

But that did not yield my wish ...

Is it actually possible?

TIA,
Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/dab88364-090a-4620-85a5-382bc4524c95n%40googlegroups.com.

Reply via email to