You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/26 08:15:56 UTC

[GitHub] Ajaxluo commented on issue #9258: timeline在ie下性能问题

Ajaxluo commented on issue #9258: timeline在ie下性能问题
URL: https://github.com/apache/incubator-echarts/issues/9258#issuecomment-433326647
 
 
   可以在IE10或IE10下打开官方实例:
   http://www.echartsjs.com/examples/editor.html?c=dynamic-data2
   修改以下配置部分:
   ```
   for (var i = 0; i < 80000; i++) {
       data.push(randomData());
   }
   
    series: [{
           name: '模拟数据',
           type: 'line',
           showSymbol: false,
           hoverAnimation: false,
           data: data,
           sampling:'average',
           areaStyle: {
               color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
               offset: 0,
               color: 'rgb(255, 158, 68)'
               }, {
               offset: 1,
               color: 'rgb(255, 70, 131)'
               }])
           },
               data: data
       }]
   
   setInterval(function () {
   
       for (var i = 0; i < 5; i++) {
           data.shift();
           data.push(randomData());
       }
   
       myChart.setOption({
           series: [{
               data: data
           }]
       });
   }, 2000);
   ```
   修改完毕后运行,会发现官网上面顶部菜单导航点击事件就会变得卡顿,如果在配置低的IE机器甚至崩溃
   在其他谷歌等浏览器均比较流畅。不必对每个x轴时间点都去绘制,准确表示一种趋势即可,有没有对ie再有优化的余地。
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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