echarts
echarts copied to clipboard
[Bug] When datazoom type is inside,mouse rolls will change the value of the tooltip.
Version
5.6.0
Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=area-simple
Steps to Reproduce
- Move the mouse in chart;
- Tooltip show;
- Mouse rolling and keep the xAxis unchanged;
- Tooltip valuse has change.
Current Behavior
When datazoom type is inside,mouse rolls will change the value of the tooltip.
Expected Behavior
The value of the tooltip remains unchanged.
Environment
- OS: Window 10
- Browser: Chrome 135
- Framework: No
Any additional comments?
No response
bug confirmed - tooltip value(Y) does refresh, but date(X) does not.
Workaround is to keep track of tooltip dataIndex and update tooltip content on datazoom event - Demo.
Also note that having sampling: 'lttb' in series would not work well with tooltip for obvious reasons, see #20488.