-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
A loop occurs in the line chart. #15323
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so. A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster. You may also check out the API and chart option to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical question. If you are interested in the project, you may also subscribe our mailing list. Have a nice day! 🍵 |
smoothMonotone affect it, in the case, you do not need |
I know it, and delete this param,but i want konw why when i set value is x and result is false,when i set value is y or default and result is true ? |
We upgraded from v4 to 5.2 and I believe we are running into this issue as well. smoothMonotone="x" used to prevent the smoothed line from doubling back on itself. Now it looks like the meaning has flipped. If we include smoothMonotone="x" it's allowed to loop back. If we take it out completely it works as it did in v4 with smoothMonotone set. If the behavior of this changed it does not appear the doc was updated accordingly, so I think this is probably a bug. |
This issue is labeled with |
We pulled down the new version and I'm still seeing the same behavior. This is our data with "smooth" set to true but smoothMonotone is not set at all: This is the same data with smoothMonotone: 'x' I'm thinking this is exactly backwards, but perhaps I am missing something? The behavior does not seem to match what's in the doc (https://echarts.apache.org/en/option.html#series-line.smoothMonotone), so I would think there's either a product bug or the doc should be updated to explain the behavior. |
@ptulou Did you build from the latest source code? |
@pissang I simply pulled down the latest echarts (v5.2.2) from npm. From the release notes, I believe this change should have been in that version. |
It's fixed in #16069 and will be included in the next release |
Version
5.1.2
Steps to reproduce
What is expected?
No loopback occurs in the line chart.
What is actually happening?
A loop occurs in the line chart.
The text was updated successfully, but these errors were encountered: