Home Assistant sensor and input_number present the points as a staircase with a horizontal line followed by a vertical line between points.
I looked into Mini Graph Chart, but the problem seems to originate with the HA database format. I would have to create more points between high and low tides to get a sensible graph.
(I had a similar issue back Dec 2020. At that time, the solution was to use input_number. After HA revisions both sensor and input plot as staircases.)
Mini graph card takes data from DB in accordance with points_per_hour, then calculates extra points if needed.
Stepline seems to show really acquired data. Direct lines shows assumed values.
This is an old issue that seems to have been missed. See
Maybe there needs to be an option for the sensor state_class attribute so that measurement points are connected with linear interpolation when plotted. This would also result in smoother plots without the need for Mini Graph Chart or oversampling.
“Smoother plots” and w/o “oversampling”?
It is not possible. To draw a curve, you need a set of data. These data either may be “real” (taken from a physical object) or “assumed” (“oversampling”).
By oversampling, I mean creating many more data points so that the small staircase steps are not as visible. If you use linear interpolation, ie draw a line between data points then you will get a smoother looking graph without using as many points.
Balloob thinks that linear interpolation is creating “fake” data. See his comments here: https://www.reddit.com/r/homeassistant/comments/1axjebo/smooth_graph_lines/?rdt=60628
The “real” data is just the value, time pairs when measured. HA is using rectilinear interpolation when graphing and is creating a “fake” data point, holding the last known value at the time of the next value change.
Moving on to Apex Charts but not hopeful.
The HA history graph matches the Apexchart graph with the stepline option.
Note that the orange dots are the real points from the HA database.
This just shows two methods of interpolation between real points.
Notice that there are a lot of corners on the stepline graph that don’t have a orange dot.
In my opinion, the straight option would be a useful addition to the HA history graph card.
It is wrong to say that one interpolation method is more “fake” than another.