首页 > TAG信息列表 > option2

echarts 树图滚轮放大缩小文字

放大缩小代码 使用getZr()注册和取消mousewheel事件 this.myChart.getZr().off("mousewheel") this.myChart.getZr().on("mousewheel", (param) => { let option2 = this.myChart.getOption(); if (option2.series[0]) { let zoom = option2.series