Hi all,
I've been toying with lightning graphs, in particular this code...
[[chart7]]
title = Lightning
[[[lightning_strike_count]]]
yAxis = 0
yAxis_min = 0
yAxis_tickInterval = 1
yAxis_label = "Number of Strikes"
stacking = normal
color = "green"
lineWidth = 0
[[[[marker]]]]
enabled = true
radius = 4
[[[[states]]]]
[[[[[hover]]]]]
lineWidthPlus = 0
And I'd like the radius value to equal the lightning strike count and/or
some result of maths depending on that value. e.g. something like this
pseudo code...
if lightning_strike_count =< 10 then radius = lightning_strike_count
if lightning_strike_count => 10 but <= 20 then radius =
lightning_strike_count/10 and color = orange
... etc...
+ other maths to change the colour of the blob from green to orange to
red dependent on how many strikes happen within the reporting time.
So... can chart items like radius and color be the result of computed
values ?
My first few attempts at this have been unsuccessful so I don't know if
this is actually possible.
thanks
Tim
--
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 on the web visit
https://groups.google.com/d/msgid/weewx-user/4154e2ab-0b93-1840-80c5-f22b253922e6%40skybase.net.