myChart.on('timelinechanged', function (timeLineIndex) { var arrIndex = parseInt(timeLineIndex.currentIndex); updateYear(years[arrIndex]); //停止播放 option.timeline.autoPlay = false; myChart.setOption(option); })
myChart.on('timelinechanged', function (timeLineIndex) { var arrIndex = parseInt(timeLineIndex.currentIndex); updateYear(years[arrIndex]); //停止播放 option.timeline.autoPlay = false; myChart.setOption(option); })