komagic opened a new issue, #16831:
URL: https://github.com/apache/echarts/issues/16831

   ### Version
   
   5.3.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   var dom = document.getElementById("container");
   var myChart = echarts.init(dom);
   var app = {};
   
   var option;
   
   
   
   let base = +new Date(1968, 9, 3);
   let oneDay = 24 * 3600 * 1000;
   let date = [];
   let data = [Math.random() * 300];
   for (let i = 1; i < 40000; i++) {
     var now = new Date((base += oneDay));
     date.push([i].join('/'));
     data.push(Math.round((Math.random() - 0.5) * 20 + data[i - 1]));
   }
   option = {
     animationDuration:30000,
     tooltip: {
       trigger: 'axis',
       position: function (pt) {
         return [pt[0], '10%'];
       }
     },
     title: {
       left: 'center',
       text: 'line Chart (400w data)'
     },
     toolbox: {
       feature: {
         dataZoom: {
           yAxisIndex: 'none'
         },
         restore: {},
         saveAsImage: {}
       }
     },
     xAxis: {
       type: 'category',
       boundaryGap: false,
       data: date
     },
     yAxis: {
       type: 'value',
       boundaryGap: [0, '100%']
     },
     dataZoom: [
       {
         type: 'inside',
         start: 0,
         end: 1
       },
       {
         start: 0,
         end: 1000
       }
     ],
     series: [
       {
         name: 'Fake Data',
         type: 'line',
         symbol: 'none',
         sampling: 'lttb',
         itemStyle: {
           color: 'rgb(255, 70, 131)'
         },
      
         data: data
       }
     ]
   };
   
   if (option && typeof option === 'object') {
       myChart.setOption(option);
   }
   
   ### Current Behavior
   
   echarts line chart 
如果数据量超过2000个(如4000),animtionDuration设置后,动画播放不能正常运行,而是直接显示所有数据
   打开devTool后才能正常播放,400w个也行
   
   ### Expected Behavior
   
   echarts line chart 如果数据量超过2000个(如4000),animtionDuration设置后,动画播放能正常运行
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org

Reply via email to