You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Optional) Why this feature is useful and how people would use the feature ?
Because linear interpolation between data points isn't necessarily the correct way to connect two data points. If the price of a stock is 100 at t=0 and at t=10 it changes to 103, then it was 100 for all 0 <= t < 10, i.e, it didn't gradually rise to 103 but it did so in a step change.
The text was updated successfully, but these errors were encountered:
I have a need for this feature. As the OP states, the linear interpolation doesn't reflect any reality for some kinds of data, which can be very misleading.
My current workaround is to manually add points to force a step interpolation, which is cumbersome and expensive for plots with lots of points.
E.g., for points A, B, C on an x/y chart, I have
xa, ya,
xb, ya,
xb, yb,
xc, yb,
xc, yc,
I'd really like for the interpolation style to be an option in the LineSeries.
As a point of reference, Graphana offers 4 choices for interpolation
Choose how the graph interpolates the series line:
Linear - Points are joined by straight lines.
Smooth - Points are joined by curved lines that smooths transitions between points.
Step before - The line is displayed as steps between points. Points are rendered at the end of the step.
Step after - The line is displayed as steps between points. Points are rendered at the beginning of the step.
Graphana's smooth fitting is probably already tracked under #170
What is the feature ?
An option to plot step charts, analogous to e.g. https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.step.html
(Optional) Why this feature is useful and how people would use the feature ?
Because linear interpolation between data points isn't necessarily the correct way to connect two data points. If the price of a stock is 100 at t=0 and at t=10 it changes to 103, then it was 100 for all 0 <= t < 10, i.e, it didn't gradually rise to 103 but it did so in a step change.
The text was updated successfully, but these errors were encountered: