I go to the dashboard and it is displayed - as much as can be expected.
But the graph/chart (see picture) is a bit...... scatty. (skatty?)
I press the REFRESH button (browser) and I get the second picture.
RasPiZ (W).
Jessie
NR 1.2.6.
Dashboard 2.26.2
This is not a recent thing. It has been going on for a while. I just decided to ask now to try and work out what is going on.
Just thinking about it at the underlying internal logic level. Couple of versions back the chart initialization phase is changed to improve performance..
Possible that processing that old heavy data from replayMessage took too long at the initialization and 2 new datapoints from live source came in before the the old data. Don't know if old datapoints can be rendered after newer datapoints already made scales of the chart to be different. Maybe.
But then why after the refresh still has that old data exists ....
Anyway - chart with that many data in it is unreadable in therms of what for the line chart are meant to. The most you can read out is upper and lower limit over the time span. And for that you don't need line chart, it takes 2 numbers and 2 time strings to tell you that information.
A lot faster and reliable dashboard will be if you optimize such heavy things out.
So do you mean that if you go to the tab then initially it starts of virtually empty, but if you refresh it fills up and correctly shows the older data?
That explains why the replayMessage from server-side is correct if you do refresh.
Inactive tab behavior is not consistent across browsers, and it is practically impossible to figure out what is the state after wake-up specially if dealing with such data-driven renderings. Not much hope to find any fix ...
Do you mean it is normal behaviour in the dashboard the if you have a chart on a browser tab that is not visible and then go to the tab that it does not initially show the chart correctly. I had not noticed that. I will try and test it.
Hard to call it normal, but technically I think it is possible to fall into that situation. Inactive browser tab tries to be as low resource consumer as possible. All browsers do something about it. And that something is not same across the browsers. Who knows all of them.... and how an why..
NR sends replayMessage if socket connection were down. But what if it wasn't? No data for configured period to show if inactive tab wakes up cos rendering were stopped and may be some memory sweeping happened also ... who knows...