You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Sladerix (via GitHub)" <gi...@apache.org> on 2025/12/16 16:12:07 UTC
[I] [Bug] dataZoom bar does not have overflow: hidden property [echarts]
Sladerix opened a new issue, #21428:
URL: https://github.com/apache/echarts/issues/21428
### 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.
```javascript
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,
},
],
```
<img width="341" height="171" alt="Image" src="https://github.com/user-attachments/assets/29b9c68b-a6ff-4324-a8eb-d952898237da" />
### Expected Behavior
Just add the the overflow: hidden styling property to the parent element
### Environment
```markdown
- OS: MacOS
- Browser: Chrome
- Framework: React TS (https://www.npmjs.com/package/echarts-for-react)
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] dataZoom bar does not have overflow: hidden property [echarts]
Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart commented on issue #21428:
URL: https://github.com/apache/echarts/issues/21428#issuecomment-3663648486
Thanks for your report! I actually noticed this issue too and already fixed it in commit c3698128b4bef94db0233dafeaf025e9ce5ef7e5 on the [feat/datazoom/move-hanlde/border-radius](https://github.com/apache/echarts/tree/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 😅 – so I haven’t opened a PR for it yet. Let’s prioritize fixing your current issue first, though!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org