Echarts监听双击事件

echarts yekong 164℃

单击事件

myChart.on('click', function (params) {
        var valarr = geoCoordMap[params.name]
        console.log(valarr)
        console.log(option.series[1])
        option.series[1].data = [{
          name: params.name,
          value: valarr,
          number: 1354,
        }]
        option.series[2].data = [{
          name: params.name,
          value: valarr,
          number: 1354,
        }]
        myChart.setOption(option, false)
      })

双击事件

      myChart.on('dblclick', function (params) {
        console.log('双击')
        console.log(params)
        that.$refs.pops.getshow()
        myChart.setOption(option, false)
      })
喜欢 (0)