org.openhab.ui.habpanel
org.openhab.ui.habpanel copied to clipboard
chart with multiple series timestamp out of sync
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?

Thanks xD
What persistence service are you using? First time I see this. It could simply a misconfiguration on that end?
Hey,
I use InfluxDb. With which configuration? InfluxDb or chart?
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).
Possibly an additional setting in which you can select the GroupBy for InfluxDB.