echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] toolbox.feature.dataZoom.yAxisIndex is not working as mentioned in API document

Open amitknit09 opened this issue 3 years ago • 2 comments

Version

5.3.3

Link to Minimal Reproduction

https://codesandbox.io/s/multiple-y-axes-forked-qrb7ll?file=/index.js

Steps to Reproduce

  1. Create a chart with multiple Y-Axis(3 Y-Axis)
  2. I want to use Data area zooming, so I have used "toolbox.feature.dataZoom" option
  3. 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

amitknit09 avatar Sep 16 '22 11:09 amitknit09

尝试下默认值 none

yAxisIndex: "none"

wmasfoe avatar Sep 16 '22 11:09 wmasfoe

尝试下默认值 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.

amitknit09 avatar Sep 16 '22 13:09 amitknit09