I see that an empty Belchertown rain chart will have the y axis 0 at the 
bottom of the chart. So I played with jsfiddle for a few minutes and think 
I have 2 ideas for you. Option #1 is the easiest fix. 

There's 2 bits to it that may work for you:

1. If you split your observations so that they use both yAxis = 0 and yAxis 
= 1, then it'll force the 0 to the bottom of the chart. Here you can see I 
have removed all yAxis options, except left the series on opposite yAxis 
<https://jsfiddle.net/obrienlabs/pfjraL2h/1/>. 
2. Or you can try a manual override with like the rain code is doing with 
minRange 
<https://github.com/poblabs/weewx-belchertown/blob/master/skins/Belchertown/js/belchertown.js.tmpl#L1215-L1220>.
 You'll 
need to define also the min = 0 or the chart won't be at the bottom. Here 
is a chart with the minRange and min defined 
<https://jsfiddle.net/obrienlabs/pfjraL2h/2/> in yAxis. and ... Here you 
can see what I mean <https://jsfiddle.net/obrienlabs/pfjraL2h/> if you 
leave min omitted. 

Making minRange and min = 0 a global option is not advised since some 
charts will go into the negative - like outTemp. Setting the min to 0 will 
hide negative values. 


On Saturday, October 19, 2019 at 2:14:00 AM UTC-4, Xant wrote:
>
>
> Even if placing "yAxis_min = 0" on Graphs.conf of Belchertown skin, 
> Highcharts place a line right at the middle of the chart, instead of a line 
> at the bottom when value is at timeframe is all "zero". Also of much 
> distress when graph actually refers to "Area", then Highchart paint solid 
> color under line.
>
>
>
>
> This seems a "normal" behaviour for Highcharts, as many also complaining (
> https://stackoverflow.com/questions/13991873/highcharts-ensure-y-axis-0-value-is-at-chart-bottom).
>  
> I tried many combinations and options into Graphs.conf, at no solution.
>
> Suggestions?
>
> Xant
>
>

-- 
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/27635336-57f8-4990-8afc-acc67ee558a3%40googlegroups.com.

Reply via email to