You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/11/03 05:57:49 UTC

[GitHub] [echarts] clarkhillm commented on issue #13072: 实时动态曲线的动画不平滑,有顿挫感

clarkhillm commented on issue #13072:
URL: https://github.com/apache/echarts/issues/13072#issuecomment-958672804


   我找到了一个比较好的解决办法,就是把x轴的数据和y轴的数据搞到一起。类似这样:
   ```
   _.each(_.range(60), function (i) {
                   state.cpu.series[0].data.shift();
                   state.cpu.series[0].data.push(["00." + i, "-"]);
                 ##});
   ```
   这种情况下图形就是连续的,不会跳动了。


-- 
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: commits-unsubscribe@echarts.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org