如何在echarts baidu中获取dataZoom changed事件中start和end的值?

How to get value of start and end in dataZoom changed event in echarts baidu?

如何获取echarts baidu中dataZoom变化事件中startend的值?

监听数据缩放变化后eCharts派发的数据缩放事件。

myChart.on('dataZoom', function(e) {
    console.log(e);         // All params
    console.log(e.start);   // Start value
    console.log(e.end)      // End value
});

Documentation on dataZoom event


将 eCharts 与 vue.js 库一起使用时:

模板:

<IECharts @dataZoom="updateZoom"></IECharts>

代码(换行在methods):

methods: {
    updateZoom(e) {
        // See all available properties of the event
        console.log(e);
    }
}

Documentation on IEcharts