initChart () {
this.$nextTick(() => {
const chart = echarts.init(this.$refs.SmartCityPie as HTMLElement)
chart.setOption(this.getOptions())
// 图表点击事件
chart.on('click', params => {
if (params.componentType === 'graphic') {
// 打开对话框
this.drawer = true
}
})
})
},
echarts给graphic中心点添加点击事件
最新推荐文章于 2024-06-08 12:13:11 发布