Skip to content

[Bug] dataZoom bar does not have overflow: hidden property #21428

Open

Description

@Sladerix

Version

6.0.0

Link to Minimal Reproduction

Steps to Reproduce

Run any chart example, enable the dataZoom with the chart options, apply the borderRadius parameter like I did in the following example

Current Behavior

The dataZoom bar must include the overflow: hidden in its styling tags because If you set the borderRadius everything will overflow and look ugly.

        dataZoom: [
            {
                id: 'dataZoomXslider',
                type: 'slider',
                height: 35,
                bottom: 7,
                xAxisIndex: [0],
                filterMode: 'filter',
                showDataShadow: false,

                backgroundColor: 'blue',
                fillerColor: "red",
                borderColor: "var(--muted-foreground)",

                borderRadius: 10, // < -----
                handleStyle: {
                    borderWidth: 0
                }
                
            },
            {
                id: 'dataZoomXinside',
                type: 'inside',
                xAxisIndex: [0],
                filterMode: 'filter',
                zoomOnMouseWheel: true,
                moveOnMouseMove: true,
                moveOnMouseWheel: false,
            },
        ],
Image Image

Expected Behavior

Just add the the overflow: hidden styling property to the parent element

Environment

- OS: MacOS
- Browser: Chrome
- Framework: React TS (https://www.npmjs.com/package/echarts-for-react)

Any additional comments?

No response

Activity

  1. added
    en
    pending
    on Dec 16, 2025
  2. plainheart commented on Dec 17, 2025

    @plainheart
    Member

    Thanks for your report! I actually noticed this issue too and already fixed it in commit c369812 on the feat/datazoom/move-hanlde/border-radius branch. That said, this branch is for a new feature that’s still in progress – honestly, I almost forgot about it 😅. The draft PR is #18959. Let’s prioritize fixing your current issue first, though!

    Reproduction Demo

  3. removed
    pending
    on Dec 17, 2025
  4. added this to the 6.0.1 milestone on Dec 17, 2025
  5. self-assigned this
    on Dec 17, 2025
  6. modified the milestones: 6.0.1, 6.x on Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugen

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions