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 2020/02/18 20:43:04 UTC

[GitHub] [incubator-echarts] Serious-ChrisLopez commented on issue #12167: How to avoid wiggling animation for real-time time series charts?

Serious-ChrisLopez commented on issue #12167: How to avoid wiggling animation for real-time time series charts?
URL: https://github.com/apache/incubator-echarts/issues/12167#issuecomment-587814579
 
 
   For me to fix that issue I had to make sure that the data I pushed had an object with { name: curTime, value: [someValue] }. 
   
   For example:
   ` let dataTimestamp = 1582058229; // unix/epoch time
     let dataValue = Math.random() * 1000; // number between 0 and 1000
     chartData.push({
       name: new Date().toString(),
       value: [dataTimestamp, dataValue]
     });
     Chart.setOption({
       series: chartData
     });`
   
   However, I am not sure why it works this way. Hopefully, someone can answer that for me.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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