bartbutenaers commented on issue #20739: URL: https://github.com/apache/echarts/issues/20739#issuecomment-2645939590
Hi @helgasoft, Thanks for assisting me (again)! I was not sure whether you preferred to keep both questions separate. I will keep that in mind next time... Yes you are absolutely correct: the `appendData` combined with `refresh` is much faster in this use case (compared to `setOption`). It works very smooth that way. And yes indeed your demo code works fine by refreshing everytime a new datapoint is appended to the chart. But imho it is a large overhead (from a performance point of view) to refresh the chart every 10 msecs (when a new datapoint arrives). This becomes even more important when the number of datapoints in the chart or the rate of appending datapoints increases further. It seems to be very inefficient to me to refresh the chart more often as your eye can see. I hope you understand my concern... Therefore I tried to reduce the number of refreshes e.g. once every 500 milliseconds (i.e. when 50 datapoints have been appended). I had expected to see every 500 milliseconds the latest 50 new datapoints to be appended to the chart, but for some reason the chart keeps flickering. I also noticed that you have used `animation: false` in your demo, but when I try to add that to my demo code the flickering isn't solved... I agree with you that adding a new feature for this might be complete overhead. But it would be nice if we could refresh the chart at lower rates. If you would have any tips I could try to do this properly, that would be very much appreciated! -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
