Open CannoChen opened 3 months ago
Does anyone know how this problem should be solved?
简而言之,这个问题就是:const chart = echarts.getInstanceByDom(svgRef.current)
这条语句一直返回的是undefined。
In short, the problem is that the statement const chart = echarts.getInstanceByDom(svgRef.current)
keeps returning undefined.
Version
5.5.0
Link to Minimal Reproduction
None
Steps to Reproduce
I implemented a Component in my reat-native app. The code is given below:
(1) Component
(2) option
(3) I also use Redux to manage state. It helps me to cache data received from bluetooth. The Slice is shown below:
Current Behavior
In , I can't get ECharts Object. When i call
const chart = echarts.getInstanceByDom(svgRef.current);
, it always returnundefined
to me. So, I can't display data received by Bluetooth to my app.Expected Behavior
I need to get the ECharts Object. then I will be able to display the data received by Bluetooth to the screen.
Environment
Any additional comments?
No response