onChartClick = (e) => {
let ip = e.name;
const obj = this.state.haviorData.find((e) => {
return e.key === ip;
});
console.log(obj)
}
let onEvents = {
'click': this.onChartClick,
}
<ReactEcharts
option={option}
onEvents={onEvents}
style={{ height: '295px', width: '70%' }}
className='react_for_echarts'
/>
React实现Echarts 点击当前内容进行匹配
猜你喜欢
转载自blog.csdn.net/weixin_43271750/article/details/83997193
今日推荐
周排行