-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
New smooth curve causes time to warp for sparse data #4063
Comments
Tankenstein
changed the title
New smooth curve causes time to warp in certain cases
New smooth curve causes time to warp for sparse data
Oct 13, 2023
Version 3.44 doesn't fix the problem. See the codepen linked in the issue: https://codepen.io/Tankenstein/pen/ZEVZXeq |
+1 |
The previous So, from now on, you have 4 curve options for stroke stroke: {
curve: "smooth" // straight, smooth, monotoneCubic, stepline
} |
This was referenced May 20, 2024
This was referenced May 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The latest release (3.43.0) changed the "smooth" curve. This is an improvement and looks great for evenly spaced data, but when data is sparse and moves around a lot, it can cause the chart to temporarily flow backwards in time, or completely reverse and do a loop.
Steps to Reproduce
[{ x: 0, y: 11 }, { x: 1, y: 10 }, { x: 2, y: 18 }, { x: 13, y: 5 }, { x: 20, y: 100 }]
)stroke.curve
to'smooth'
Expected Behavior
Line and area chart lines move relatively smoothly from one point to the next, but never going backwards in time.
Actual Behavior
Line and area chart lines can go backwards in time.
Screenshots
Reproduction Link
https://codepen.io/Tankenstein/pen/ZEVZXeq
Related issue, closed because it was missing a repro link: #4044
The text was updated successfully, but these errors were encountered: