org.openhab.ui.habpanel icon indicating copy to clipboard operation
org.openhab.ui.habpanel copied to clipboard

chart with multiple series timestamp out of sync

Open rliegmann opened this issue 7 years ago • 4 comments

Hello, I have the following problem. For a chart with more than two series, the timestamps in the Overley will not appear in sync. In the raw data the timestamp comes as Utc with milliseconds. Can the timestamp be rounded?

bildschirmfoto 2018-11-04 um 21 53 42 bildschirmfoto 2018-11-04 um 21 53 11

Thanks xD

rliegmann avatar Nov 04 '18 20:11 rliegmann

What persistence service are you using? First time I see this. It could simply a misconfiguration on that end?

ghys avatar Nov 05 '18 12:11 ghys

Hey,

I use InfluxDb. With which configuration? InfluxDb or chart?

rliegmann avatar Nov 05 '18 16:11 rliegmann

Okay, this doesn't happen with rrd4j obviously because it "rounds" them itself according to the step time: that's part of its "data consolidation" feature. Neither the chart widget nor the n3-line-chart library has an option to do that consolidation (or "repeat" the previous value for each series and each timestamp encountered) on the client side - not sure whether it's a good idea to do that on the client at all since it's a performance hit for everyone. Then there's the question of what precision to choose for the consolidation (it depends on the chart period, the nearest second might not be enough for the longer periods).

ghys avatar Nov 05 '18 17:11 ghys

Possibly an additional setting in which you can select the GroupBy for InfluxDB.

rliegmann avatar Nov 05 '18 19:11 rliegmann