Nothing. This is one of the challenges of working with charts.
I can’t tell what you are using for graphing. If it is Grafana you simply need to turn on “Staircase line”. But that will get rid of the diagonal line segments in the whole chart.
I don’t know about Habpanal’s charting.
From the table, it looks like you are only saving everyChange so it would make no sense to have two 0s in the database next to each other. That is as it should be.
The only thing that I can think of doing is to use a Proxy Item configured to store everyUpdate in persistence. Then have a rule:
rule "Insert extra 0 when necessary"
when
Item sdm220_hourcounter_night changed
then
if(sdm220_hourcounter_night_proxy.state == 0) sdm220_hourcounter_night_proxy.postUpdate(0)
sdm220_hourcounter_night_proxy.postUpdate(sdm220_hourcounter_night.state)
end
You then chart the proxy.