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 2022/08/27 19:52:20 UTC

[GitHub] [echarts] helgasoft commented on issue #17534: line3D 动态添加数据坐标轴会闪动且会卡顿

helgasoft commented on issue #17534:
URL: https://github.com/apache/echarts/issues/17534#issuecomment-1229255879

   True - the axes will flicker. And true - [appendData](https://echarts.apache.org/en/api.html#echartsInstance.appendData) is not officially supported for _line3D_.
   But one can somewhat remedy the problem.
   &nbsp;  &nbsp;   First - by not explicitly redraw the chart with ```setOption(option, true);``` - **true** means redraw/replace.
   &nbsp;  &nbsp;     Second - by setting **max** values to axes
   &nbsp;  &nbsp;     Third - by decreasing the frequency
   &nbsp;  &nbsp;     (Fourth - upgrade computer to faster one)
   Update [the example](https://echarts.apache.org/examples/en/editor.html?c=line3d-orthographic&gl=1) with following code
   ```
     xAxis3D: {    type: 'value', max:12  },
     yAxis3D: {    type: 'value', max:12  },
     zAxis3D: {    type: 'value', max:30  },
   
   setInterval(() => {
     option.series[0].data.push([Math.random()*11.3,Math.random()*10.3, Math.random()*15.3])
     myChart.setOption(option);  //, true);
   }, 800);
   ```
   and flicker will disappear when tested on Intel i5 processor.
   


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