Serious-ChrisLopez edited a comment 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: <pre> 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 });</pre> However, I am not sure why it works this way. Hopefully, someone in this community can answer why just giving the series an array makes the line wiggle and why giving it this object schema seem to fix that issue.
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
