apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
59.52k stars 19.58k forks source link

[Bug] echarts.connect has a problem with chart series of different sizes #20081

Open MDonata opened 4 days ago

MDonata commented 4 days ago

Version

5.5.0

Link to Minimal Reproduction

https://codepen.io/Marcela-Donata/pen/gOJyaxr

Steps to Reproduce

  1. Create a chart with a array of series data.
  2. Create another chart with a array of series data with more data than the first.
  3. Connect the charts using echarts.connect.
  4. Hover over the last points on the chart with the most data.
  5. You will see that the connection between the graphs is not working and the tooltip on the graph with fewer points is not appearing even if it has the same value in xaxis.

Current Behavior

When you connect two charts using echarts.connect and one of the charts has more points than the other, the last points corresponding to the difference in size of the series.data arrays will not display the synchronized tooltips. Probably because the series.data array indexes of the last points do not exist in the graph with less data.

Expected Behavior

I expect the chart to show the tooltips synchronized by the value of xaxis, whatever the length of the data.series array of the charts involved.

Environment

- OS: Windows
- Browser: Chrome
- Framework: Angular

Any additional comments?

No response

helgasoft commented 4 days ago

see similar #20058