Echarts饼图、柱状图、折线图(pie、bar、line)添加点击事件
var myChart = echarts.init(document.getElementById('myChart'));
myChart.on('click', function (param) {
alert('点击了我!');
});
Echarts事件参数可以去config.js查找
Echarts饼图、柱状图、折线图(pie、bar、line)添加点击事件
var myChart = echarts.init(document.getElementById('myChart'));
myChart.on('click', function (param) {
alert('点击了我!');
});
Echarts事件参数可以去config.js查找