-
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
[Bug] ECharts splitLine not showing on interval function #19247
Comments
Observations are correct and several bugs are confirmed for interval :
One partial fix is to use index instead of value - Demo Code |
Using your demo code and zooming like this also gives the same result |
That's why I call it "partial fix". |
There seems to be a bug when there's only one tick. The logic here takes special care about the case with single tick but it assumes the tick is at the start. But in the case of callback, it may not be at the start. I think we should be careful when changing the related logic to make sure we don't break things down. I will look into this later. |
Here is my fix on the issue and PR link (#19382) The given data array has only one non-empty value and the rest are empty values |
Version
5.4.3
Link to Minimal Reproduction
https://codepen.io/calabasssita/pen/wvNaJrd
Steps to Reproduce
You can reproduce it also on the examples editor:
There are splitLines under each data label when it's not an empty string:
Change data do this, for example, the splitLine goes to the left side of the chart, and not under the data label:
It also happens if you have data like this, and you zoom leaving only one label on the zoomed data
Current Behavior
The splitLines does not show under the label when there's only one not empty value in data, it also happens while having more than one not empty values if you zoom the chart so only one one not empty value is shown.
Expected Behavior
To have a splitLine under the data label when it satisfies the function.
Environment
Any additional comments?
If there's a workaround, to only show the splitLines when a value is different from X it would also help, Thanks.
The text was updated successfully, but these errors were encountered: