echarts
echarts copied to clipboard
[Bug] toolbox.feature.dataZoom.yAxisIndex is not working as mentioned in API document
Version
5.3.3
Link to Minimal Reproduction
https://codesandbox.io/s/multiple-y-axes-forked-qrb7ll?file=/index.js
Steps to Reproduce
- Create a chart with multiple Y-Axis(3 Y-Axis)
- I want to use Data area zooming, so I have used "toolbox.feature.dataZoom" option
- I want to control the zoom for only 1 Y-Axis. toolbox: { feature: { dataZoom: { yAxisIndex: [1] } } }
Current Behavior
Zoom functionality stopped working and it only works if I am giving all 3 axis.
Expected Behavior
Defined yAxis should be controlled.
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
尝试下默认值 none?
yAxisIndex: "none"
尝试下默认值
none?yAxisIndex: "none"
Yes, this will work if I don't want to control specific axis. But here I want to control axis at a specific index.