Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kaffeestand opened this issue Feb 1, 2024 · 0 comments

Comments

@Kaffeestand
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant