I don't know, if it's possible. If it is possible, I recommend the area 
being equivalent to the strike count, using a constant factor, if 
necessary. Something like radius = factor * sqrt(lightning_strike_count/PI)



Tim Tuck schrieb am Montag, 11. September 2023 um 05:49:09 UTC+2:

> 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/86260ca7-41db-4f86-9279-93f845fca7d7n%40googlegroups.com.

Reply via email to