Community Support

Rainrate on Double ...
 

[This post is marked as unsolved] Rainrate on Double Line Chart  

  RSS
Chris
(@zerog981)
Reputable Member 🇩🇪🇦🇹🇨🇭Editor

Hi Pierre,

this is just a minor issue I was observing now for a couple of months and now I found the time to report it (also since we had some rain today after a long period of dry weather 😉). I created a Double Line Chart with the cumulative rain on the left axis and the rainrate on the right axis. I further choose not to show any values (i.e. dots). Here's the shortcode:

[live-weather-station-graph mode='daily' type='doubleline' template='neutral' data='ajax_refresh' color='cs01' label='none' interpolation='linear' timescale='auto' valuescale='auto' guideline='standard' height='300px' periodtype='none' periodvalue='none' device_id_1='yy:00:00:00:00:02' module_id_1='m3:c0:00:00:00:02' measurement_1='rain_day_aggregated' line_mode_1='arealine' dot_style_1='none' line_style_1='solid' line_size_1='regular' device_id_2='yy:00:00:00:00:02' module_id_2='m3:c0:00:00:00:02' measurement_2='rain' line_mode_2='line' dot_style_2='none' line_style_2='solid' line_size_2='regular']

Now, if there's no rain, I just see a very thick line (see first screenshot). At first I thought it really is a line, but only during maintenance - when the system missed some datapoints - I realized that the line is actually a succession of a lot of large dots. Today we had some rain and I don't see the dots anymore, just the two lines as expected (see second screenshot).

Maybe you have an idea what's the reason behind this kind of behavior; I think it always occurs if a measured value stays at constant zero since midnight. If you want me to test anything or provide more information, just let me know!

I'm sure you're currently occupied with Weather Station 3.8, so I'm not worried if you give this issue some time (it's no big deal after all).

Thank you and have a nice weekend,

Chris

I like the cold weather. It means you get work done.

Quote
Posted : 05/04/2019 7:38 pm
Topic Tags
Pierre Lannoy
(@pierre-lannoy)
Member Admin

Hello Chris.

It's an issue I'm aware since some time. In fact it's really strange as it is not "really" dots but the control (which relies on D3.js) have many difficulties to handle systematic 0 values: it tries to make a line between the two points but as it is zeroed, the result is pretty ugly.

I don't know how to fix this for now, but I will try to find a solution for that for next version - but I can not guarantee the result 😯 

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

ReplyQuote
Posted : 13/04/2019 2:19 pm
Chris
(@zerog981)
Reputable Member 🇩🇪🇦🇹🇨🇭Editor

Hi Pierre,

thanks for your reply. Ok, so it's really strange 🤔 But don't worry, people will mostly be interested in the rainrate chart if it's raining anyway.

Chris

I like the cold weather. It means you get work done.

ReplyQuote
Posted : 13/04/2019 9:50 pm
Pierre Lannoy
(@pierre-lannoy)
Member Admin

Hi Chris!

I've try everything I can, but no way, this fu**ing control doesn't want to draw it correctly when following values are zero... Sorry for that, but it will remain 🙁

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

ReplyQuote
Posted : 19/04/2019 1:24 pm
Chris liked
HWIM
 HWIM
(@hwim)
Trusted Member

Is it an idea to automatically change a "zero" value to, let's say 0.000001  as a workaround?

ReplyQuote
Posted : 19/04/2019 1:36 pm
Pierre Lannoy
(@pierre-lannoy)
Member Admin

Yes, that's a good idea I've tried, and it's the same thing: values are too close and the result is a graph with sort-of points between values...

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

ReplyQuote
Posted : 19/04/2019 1:39 pm
HWIM liked
Chris
(@zerog981)
Reputable Member 🇩🇪🇦🇹🇨🇭Editor

Don't worry Pierre, ugly though it is, it's not distracting 😉 Something that comes to my mind (admittetly not really understanding the problem behind) is to "simulate" a negative value at let's say midnight and then cut the scale to only allow values above zero (which of course makes sence for rain rate). But as I said, I have no idea how feasable this is...

Chris

I like the cold weather. It means you get work done.

ReplyQuote
Posted : 19/04/2019 1:53 pm
Pierre Lannoy
(@pierre-lannoy)
Member Admin

Ah! Let me think about this one, I must try it... 🤔 

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

ReplyQuote
Posted : 19/04/2019 1:56 pm
Chris liked

To participate, please connect first!