apache / echarts

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

[Bug] get error [undefined (reading 'getRawIndex') ] when click on stackline chart #16998

Open lissali opened 2 years ago

lissali commented 2 years ago

Version

"echarts": "5.2.1", "echarts-for-react": "3.0.1",

Link to Minimal Reproduction

No response

Steps to Reproduce

On stack line chart, click data point, it get errors as following randomly: 图片

Current Behavior

图片

Expected Behavior

no error

Environment

- OS:MacOS
- Browser:Chrome
- Framework:React

Any additional comments?

No response

echarts-bot[bot] commented 2 years ago

@lissali Please provide a demo for the issue either with Official Editor, CodePen, CodeSandbox or JSFiddle.

j3ski-bioraptor commented 5 months ago

I had the same error but in different circumstances. Adding an explicit id to the series component helped. The error would happen randomly, but always in the following circumstances:

  1. setOption was called (with replaceMerge for most options, but I didn't check other behaviour)
  2. some internal event was triggered in echarts (eg series hover triggering a tooltip) in rapid succession of 1