-
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] Bar Chart bars overflow out of the coordinate system #19972
Comments
Thank you for working on this, @KurtGokhan.
I suppose you are fixing 1. Would the PR also remove outside bars when zoom filterMode is 'none' ? Review of referenced issues: |
The first 2 issues are "related" but don't exactly ask the same thing. The other three issues don't also ask exactly the same thing, but are caused by the same problem. The problem is, bar chart doesn't clip correctly. I also noticed this problem initially with Also added a test-case with dataZoom. |
Just want to make sure |
Are you talking about a real use case, or a hypothetical one? In any case, you can use It doesn't look good though. The bars collide with the axes, making it unreadable. Other chart types support |
Version
5.5.0
Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurALYTREBMANCemQIYZEBsAdNSQL73oBzAE4QAJkVSlYAGwCmAMzBEAjAAZV_UiIEALJbDWremgJ458EviTyyRswrADaDYlPTQmZWUQDkAZSY5H00pMBMQb1gfACMmIWCXdFEmMCYiZzdSR2VaWABWAF0Qt0c6WGpVIsSsgGZcmrYqzPRHABZctSbmxzyOyuKpRzZciq7MxwB2XNaC6rHSAGNpCBAiMCEAV1kXHhJZngBuIA
Steps to Reproduce
Open the minimal reproduction link and you should easily see the issue.
Current Behavior
The clip option for bar chart doesn't work as expected.
Expected Behavior
It should look like this when clip option is true.
Environment
Any additional comments?
The option was actually working as expected, but at some point it was broken, specifically by #11338. The PR seems intentional. But there is no explanation on why it is done or any link to any existing issues. I assume author did it for a specific use-case, but they could have easily used
clip: false
to achieve the same result.Here are some related issues:
#17858
#12720
#13321
#11240
#10374
Fixed by PR #19973
The text was updated successfully, but these errors were encountered: