echarts监听点击(空白处)事件,echarts监听滑动事件
利用getZr()属性获取滑动事件和点击事件,(需要支持es6,否则自行改写)
let obj = document.getElementById('xxxxxxxxxxxxxxId')
if (!obj) return
let myChart = echarts.init(obj)
myChart.setOption(item.option)
// 点击
myChart.getZr().on...
原创
2018-12-03 16:35:17 ·
11672 阅读 ·
1 评论