echart timeline 停止循环播放

myChart.on('timelinechanged', function (timeLineIndex) {

            var arrIndex = parseInt(timeLineIndex.currentIndex);
            updateYear(years[arrIndex]);

            //停止播放
            option.timeline.autoPlay = false;
            myChart.setOption(option);
        })

 

posted @ 2021-04-22 10:01  沉迷编程的程序员  阅读(112)  评论(0编辑  收藏  举报