zpf96126 opened a new issue #12545:
URL: https://github.com/apache/incubator-echarts/issues/12545


   ### Version
   4.7.0
   
   ### Reproduction link
   
[https://www.echartsjs.com/examples/zh/editor.html?c=dynamic-data2](https://www.echartsjs.com/examples/zh/editor.html?c=dynamic-data2)
   
   ### Steps to reproduce
   将随机数值函数修改为
   function randomData() {
       now = new Date();
       value = value   Math.random() * 21 - 10;
       return {
           name: now.toString(),
           value: [
               [now.getFullYear(), now.getMonth()   1, now.getDate()].join('/') 
" " [now.getHours(), now.getMinutes(), now.getSeconds()].join(':'),
               Math.round(value)
           ]
       };
   }
   将格式化日期修改为
       tooltip: {
           trigger: 'axis',
           formatter: function (params) {
               params = params[0];
               var date = new Date(params.name);
               return date.getDate()   '/'   (date.getMonth()   1)   '/'   
date.getFullYear() ' ' date.getHours()   ':'   date.getMinutes()   ':'   
date.getSeconds()   ' : '   params.value[1];
           },
           axisPointer: {
               animation: false
           }
       },
   
   ### What is expected?
   能够按秒显示动态数据折线
   
   ### What is actually happening?
   每分钟的前10秒会卡住,然后不绘制这段时间内的折线
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to