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
I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
Currently, users could interpolate the source data by setting shape to "smooth" when using lines and areas. But only one interpolation method is provided yet, which unfortunately doesn't ensure monotonicity.
In the image above, the 7 points in the middle has same y-value, but the projected line shows two peaks at both the beginning and the end. This may cause misleading in some circumstances. In other words, for each two neighboring data point (x_i, y_i) and (x_{i 1}, y_{i 1}), the interpolated curve should ensure that y_i <= y <= y_{i+1} is true for all point (x, y) that satisfying x_i <= x <= x_{i+1}.
What problem does this feature solve?
Currently, users could interpolate the source data by setting shape to
"smooth"
when using lines and areas. But only one interpolation method is provided yet, which unfortunately doesn't ensure monotonicity.In the image above, the 7 points in the middle has same y-value, but the projected line shows two peaks at both the beginning and the end. This may cause misleading in some circumstances. In other words, for each two neighboring data point (x_i, y_i) and (x_{i 1}, y_{i 1}), the interpolated curve should ensure that y_i <= y <= y_{i+1} is true for all point (x, y) that satisfying x_i <= x <= x_{i+1}.
Here's a reference implementation in D3.js.
By the way, I'm willing to help. Please let me know if I could do anything.
What does the proposed API look like?
Although we could offer the new interpolation as a new type of shape, it's better to add interpolation as a separate attribute of lines and areas.
The text was updated successfully, but these errors were encountered: