lightmaster / Meteobridge-Weather34-Template

Github repository for the Meteobridge version of the weather34 template
Other
18 stars 10 forks source link

Rain graph left axis becomes unreadable if high rain amounts #13

Closed dive76 closed 5 years ago

dive76 commented 5 years ago

2019-03-11

During high amount rain events >20mm left axis becomes unreadable.

weather34 commented 5 years ago

not sure what to make of your graph or readings .. you have 50+mm of rain measured in a hour and rain rate of 170mm .. could be real but notice the 54.8mm of rain last hour.. unfortunately it will have to wait until may till this is resolved ..unless anyone else offers a solution..i.e increase the intervals in the chart scripts ..

dive76 commented 5 years ago

Hi Brian, no issue. Tropical rain is like this. We sometimes have 80mm in one hour and up to 280mm/h rain rate! Let me have a look in the script. Should be easy to fix.

dive76 commented 5 years ago

interval set to "auto".

Rain Graphs.zip

lightmaster commented 5 years ago

Playing around with this some, I'd say need to set the labelFormatter of both Y axes to have 2 decimal places. At least with inches and a low rain rate, I end up with a chart that has multiple .1in

img

line 126: interval:'auto', line 136-138: labelFormatter: function ( e ) { return e.value .toFixed(2) +"<?php echo $rainunit ;?>" ; }, line 167-169: labelFormatter: function ( e ) { return e.value .toFixed(2) +"<?php echo $rainunit ;?>" ; },

weather34 commented 5 years ago

merged many thanks..brian