今天我再vue中使用柱状图拖动时,一直报错Cannot read properties of undefined (reading 'type')。
原因如下,我使用了myChart 来接收数据,当myChart使用的是vue的ref或者reactive来命名的变量,如果这样子命名就会报上述错误。
myChart = echarts.init(
statistical
);
应该使用let或者var定义myChart ,就不会出现错误了。
- properties undefined dataZoom 时报 echartsproperties undefined datazoom时报 properties typeerror undefined时报 properties undefined echart5 reading properties undefined reading echart properties typeerror undefined echarts datazoom范围echarts datazoom文本echarts 数据datazoom过多echarts taro-react-echarts datazoom echarts程序 properties undefined reading cannot