获取Echarts的DataZoom的起始值

创建DataZoom拖动事件

 myChart.on(ecConfig.EVENT.DATA_ZOOM, eConsole);   //事件名, 相关联的方法名

var ecConfig = require('echarts/config');

//拖动时执行次事件
function eConsole(param) {
var a = param.zoom.xAxisIndex[0];

var aaa = myChart.component.xAxis.option.xAxis[0].data;

$("#test_span").html(aaa[a]);

}

原文地址:https://www.cnblogs.com/piupiupiu/p/4517210.html