菜鸟架构:
// 添加拖拽事件监听
myLine1.on('dataZoom', params => {
if (params.batch && params.batch.length > 0) {
const start = params.batch[0].start;
const end = params.batch[0].end;
myLine2.dispatchAction({
type: 'dataZoom',
start: start,
end: end
});
}