openhab / org.openhab.ui.habpanel

OUTDATED repo - HABPanel has moved to the openhab-webui repo!
https://github.com/openhab/openhab-webui
Eclipse Public License 1.0
97 stars 93 forks source link

Multiseries chart does not render if one series has no data in period #83

Closed ghost closed 7 years ago

ghost commented 7 years ago

To start with I must say that I absolutely love Habpanel and all the action in this project right now!

I was very happy when the support for several series was added in the chart widget. It was the turning point for me which made me migrate from the basicui to habpanel.

It seems however that the chart does not render correctly if you have several series in which (at least) one series does not have any data points in the period you try to chart.

In my case I chart all my motion sensors (0 and 1) in the same graph to illustrate the movement in my house. If one sensor has no change within the chart period the graph does not work. A workaround would be to persist the sensor values every 15 minutes or so but I would rather only want to persist actual changes.

Example of a non working chart

screen shot 2016-12-07 at 08 48 12

Example of a working chart

screen shot 2016-12-07 at 08 48 55
ghys commented 7 years ago

I'm aware of that :) Thanks for the report nonetheless.