hustcc / echarts-for-react

⛳️ Apache ECharts components for React wrapper. 一个简单的 Apache echarts 的 React 封装。
https://git.hust.cc/echarts-for-react
MIT License
4.56k stars 633 forks source link

Cannot read property 'getRawIndex' of undefined #304

Closed wustdjf closed 5 years ago

wustdjf commented 5 years ago

这种错误怎么解决啊,力引导图还没绘制完成,鼠标hover就会报错。echarts-for-react有没有方法判断图片是否加载完成呢

albertogaldames commented 5 years ago

I'm getting this same erro when I try to call an action of redux inside the showTip event.

_handleMouseMove = (params) => {
    const { _setYearHover, yearHover } = this.props;
    const { dataIndex } = params;

    if (dataIndex !== yearHover) {
      _setYearHover(dataIndex);
    }
}

Does someone know why? The error seems to be in this part of the code

image

Li-Kuan commented 5 years ago

same here 同问!!!

hustcc commented 5 years ago

请到 echarts 项目中提 issue。