echarts icon indicating copy to clipboard operation
echarts copied to clipboard

remove brush

Open djy2017 opened this issue 7 years ago • 2 comments

通过事件或者点击brush按钮添加了选框后,除了点击clear按钮还有其他方式移除选框吗? 如何通过JS调用API直接移除

djy2017 avatar Dec 19 '18 09:12 djy2017

        myChart.dispatchAction({
            type: 'brush',
            areas: []
        });

即可。 参见 http://echarts.baidu.com/api.html#action.brush.brush

100pah avatar Dec 20 '18 12:12 100pah

 this.chart.dispatchAction({
        type: 'brush',
        areas: []
    });
    this.chart.dispatchAction({
      type: 'takeGlobalCursor',
      key: 'brush',
      brushOption: {
        brushType: false,
        brushMode: 'single'
      }
    })

lay-coder avatar May 21 '19 03:05 lay-coder