ioBroker/ioBroker.echarts

Display all values together / Incorrect value "interpolation" for Step Graphs

Kaffeestand opened this issue · 0 comments

Displaying all (correct) values of all displayed graphs together in one tooltip isn't possible for step-charts.

Use case:

  • multiple graphs displayed in one chart
  • graph values with different ("unsynchronized") timestamps
  • Step graph

if you set "No Interpolation in Tooltip":
The Hover-Tooltip will only show one value of one graph at one timestamp. it won't show the other value as they have slightly different timestamps

if you enable "Interpolation in Tooltip":
The Hover-Tooltip will only show all values of all graphs at a timestamp, but will linear interpolate the unavailable data based on the previous and next value.
This is correct for a native line chart, but incorrect for a step graph. Here the "interpolated" value should be the same constant value of the previous (or next) timestamp (according to the step diagram type)

"No Interpolation":
Screenshot 2024-02-01 092806 Screenshot 2024-02-01 092844

"Interpolation"
Yellow 1st value: 7.21 kWh; 2nd value: 6.60 kWh
Screenshot 2024-02-01 092958 Screenshot 2024-02-01 092945
Incorrect "Interpolation": Yellow value should be 7.21 kWh, but is linear interpolated 6.92 kWh
Screenshot 2024-02-01 093013