Skip to content

[Bug] Bar Chart bars overflow out of the coordinate system #19972

Description

@gkurt

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.

image

Expected Behavior

It should look like this when clip option is true.

image

Environment

The environment is irrelevant but here it is:

- OS: macOS Sonoma
- Browser: Chrome 125

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions