echarts区域缩放如何手动触发还原(back)事件
// 找到属性名
let tmp = ''
Object.keys(this.chart._componentsMap).map((item) => {
if (item.indexOf('series') !== -1 && item.indexOf('_toolbox') !== -1) {
tmp = item
}
})
// 手动触发 back 事件
if (this.chart._componentsMap[tmp]._features) {
this.chart._componentsMap[tmp]._features.dataZoom.onclick(null, null, 'back')
}
转载请注明出处,谢谢!