ahmadalibaloch opened a new issue #9221: Echarts is flushing values when we 
resume live charts
URL: https://github.com/apache/incubator-echarts/issues/9221
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   https://ecomfe.github.io/echarts-examples/public/editor.html?c=dynamic-data
   Open this live chart example and go to another tab for 10 seconds. When you 
switch back to the 
    live chart tab say after 10 seconds, it will suddenly draw all the chart 
lines that were to come live second by second. This has some serious 
implications in Alarm & Events applications.
   
   ### details of the problem: 
   In our one application we are taking current machine time for every value 
received over mqtt web socket connection. For example with one second interval 
we receive 4,5,6,7 and attach value received time with the value, they become 
e.g. [4, 10s],[4, 11s],[6, 12s],[7, 13s]. I update echart options at every 
message received. But the problem I am facing is that if the browser tab is in 
background, echarts would render all these points together at once I switch 
back to chart tab. This is same for both time and category axis type. I don't 
know is this a problem with the canvas rendering or the echarts.
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:  v4.2.0.rc
   + Browser version [浏览器类型和版本]: Chrome, Firefox, doesn't matter
   + OS Version [操作系统类型和版本]: Ubunut & Windows, doesn't matter
   
   ### Expected behaviour [期望结果]
   Echart should be rendering to canvas in real time when the values are 
received, and we called `chartInstance.setOption()` instead of flushing all 
values at once, if tab is hidden.
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to