echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] When datazoom type is inside,mouse rolls will change the value of the tooltip.

Open lightmood opened this issue 7 months ago • 1 comments

Version

5.6.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=area-simple

Steps to Reproduce

  1. Move the mouse in chart;
  2. Tooltip show;
  3. Mouse rolling and keep the xAxis unchanged;
  4. Tooltip valuse has change.

Current Behavior

When datazoom type is inside,mouse rolls will change the value of the tooltip. Image Image

Expected Behavior

The value of the tooltip remains unchanged.

Environment

- OS: Window 10
- Browser: Chrome 135
- Framework: No

Any additional comments?

No response

lightmood avatar May 26 '25 03:05 lightmood

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.

helgasoft avatar May 26 '25 20:05 helgasoft