Closed shuai4983958 closed 4 years ago
renderDifficultyRatio = () => { const onEvents = { finished: this.onChartFinished, }; return ( <ReactEcharts option={this.getDifficultyRatioOption()} theme="Imooc" onEvents={onEvents} style={{ height: '350px' }} /> ); };
onChartFinished = () => { alert('finish') // this.props.onPieFinished(); };
2-3次alert
see: https://github.com/hustcc/echarts-for-react/blob/b1df3b339bf07d4f6a2b8fdc62ed3bc4c93f2d0d/src/core.jsx#L25-L34
renderDifficultyRatio = () => { const onEvents = { finished: this.onChartFinished, }; return ( <ReactEcharts option={this.getDifficultyRatioOption()} theme="Imooc" onEvents={onEvents} style={{ height: '350px' }} /> ); };