Belchertown plot gaps

48 views
Skip to first unread message

Patrick Mendiuk

unread,
Jun 26, 2019, 1:32:12 PM6/26/19
to weewx-user
I have some strange gaps in some of my plots:

gap1.PNG

I initially thought there was just some missing data but I hovered in the gap and saw that there was data:

gap2.PNG

I looked in the database and confirmed there is data at that time stamp.

-Patrick

Patrick Mendiuk

unread,
Jun 26, 2019, 4:47:51 PM6/26/19
to weewx-user
I temporarily added gapSize and connectNulls statements which fixed the missing plot lines but hides inconsistent data periods I am trying to solve.  Is there was a way to change the line color when a data point is missing rather than the line disappear.

Pat

unread,
Jun 26, 2019, 5:00:17 PM6/26/19
to weewx-user
No the gapsize is intended to mirror the behavior of the weewx standard chart images in Seasons. Basically if there's no data point, then there's no data point. Show nothing. 

No, there's no color option that would represent the gap. 

If you do not want the gap and want an arbitrary connecting line, then the connectnulls option is what you're after. 

Patrick Mendiuk

unread,
Jun 26, 2019, 6:15:46 PM6/26/19
to weewx-user
When I read the Highchart documentation I thought I could set a time threshold for when I have gaps in the plots:  

Together with gapSize, this option defines where to draw gaps in the graph.

When the gapUnit is relative (default), a gap size of 5 means that if the distance between two points is greater than five times that of the two closest points, the graph will be broken.

Pat

unread,
Jun 26, 2019, 6:33:32 PM6/26/19
to weewx-user
You can, but this is a graph-wide setting. You cannot mix-and-match gapsize in the graph. 

If your expected time plots are 5 minutes (typically based off your archive interval), then your gapsize should be 5 minutes - this way anything over 5 minutes will show a gap (i.e. the data plot expected is not there). 

You'll notice the gapsize changes for the week group then changes again for the month and year groups - because those aggregate intervals are longer.  gapSize should be married to the aggregate interval in most cases. 

Patrick Mendiuk

unread,
Jun 26, 2019, 6:41:02 PM6/26/19
to weewx-user
OK that is for the entire graph not a specific value.
Reply all
Reply to author
Forward
0 new messages