echarts: dataZoom click not working
Version
5.2.1
Reproduction link
https://jsfiddle.net/tmtron/9y0xtqs7/11/
Steps to reproduce
click on the dataZoom
What is expected?
click event should be invoked
What is actually happening?
click event is not invoked
The example from the documentation: echartsInstance. on is also not working:
chart.on('click', 'dataZoom', function () {...});
- Other click events work: e.g. on the series, axis-labels (when
triggerEventis set totrue) - but for dataZoom,
triggerEventdoes not exist - Maybe someone knows a temporary workaround?
- I thought about using echartsInstance.containPixel, but it seems, that this does also not support
dataZoom
- I thought about using echartsInstance.containPixel, but it seems, that this does also not support
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 16 (10 by maintainers)
Sorry for not merging the PR from @susiwen8 . Didn’t notice it’s a mistake from the doc.
We need to think through these questions carefully before we providing such an event.
dataZoomaction.