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 2021/04/04 06:46:35 UTC

[GitHub] [echarts] symlons opened a new issue #14592: How to get a proper xAxis animation for realtime data?

symlons opened a new issue #14592:
URL: https://github.com/apache/echarts/issues/14592


   ### Version
   5.0.2
   
   ### Reproduction link
   [https://github.com/symlons/echarts_realtimeData/blob/main/sine_function.js](https://github.com/symlons/echarts_realtimeData/blob/main/sine_function.js)
   
   ### Steps to reproduce
   You are able to run the code found in the link above inside the demo section of echarts.
   
   ### What is expected?
   A consistent xAxis animation.
   
   ### What is actually happening?
   The problem is that the xAxis labels don't get rendered properly. As I am changing the min and max value of the xAxis dynamically they change in place but all the other labels would slide to the left. How can I change it, that also all these labels change in place or that the min and max lables slide to the left?
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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



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


[GitHub] [echarts] symlons removed a comment on issue #14592: How to get a proper xAxis animation for realtime data?

Posted by GitBox <gi...@apache.org>.
symlons removed a comment on issue #14592:
URL: https://github.com/apache/echarts/issues/14592#issuecomment-813277981


   I resolved this issue just by using `min`. But I planned to use it in a dynamic setting, so I had then the issue that the data broke up too early like that:
   
   ![echarts](https://user-images.githubusercontent.com/63979635/113554484-b326ec80-95f9-11eb-8665-ee64b868828f.gif)
   
   But as it turned out this issue wasn't due to setting min dynamically. Shifting the data too early lead to that issue.
   So instead of shifting the data before pushing new data you should do it like that: `data = data.slice(-initial_data-buffer)`.
   This prevents shifting all the data if buffer is chosen as big as new data should be updated. So finally you'll have a much smootehr animation:
   
   ![echarts_2](https://user-images.githubusercontent.com/63979635/113555574-6e9c5080-95fb-11eb-8baa-387ba084ca11.gif)
   
    


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



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


[GitHub] [echarts] symlons commented on issue #14592: How to get a proper xAxis animation for realtime data?

Posted by GitBox <gi...@apache.org>.
symlons commented on issue #14592:
URL: https://github.com/apache/echarts/issues/14592#issuecomment-815025392


   Thank you very much!


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



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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14592: How to get a proper xAxis animation for realtime data?

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14592:
URL: https://github.com/apache/echarts/issues/14592#issuecomment-812983819


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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



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


[GitHub] [echarts] Ovilia commented on issue #14592: How to get a proper xAxis animation for realtime data?

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #14592:
URL: https://github.com/apache/echarts/issues/14592#issuecomment-814710425


   You should set `xAxis.animationDurationUpdate` and `series.animationDurationUpdate` to be the same as your update frequency (100) and `xAxis.animationEasing` and `series.animationEasing` to be `'linear'`.


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



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


[GitHub] [echarts] symlons closed issue #14592: How to get a proper xAxis animation for realtime data?

Posted by GitBox <gi...@apache.org>.
symlons closed issue #14592:
URL: https://github.com/apache/echarts/issues/14592


   


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



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


[GitHub] [echarts] symlons commented on issue #14592: How to get a proper xAxis animation for realtime data?

Posted by GitBox <gi...@apache.org>.
symlons commented on issue #14592:
URL: https://github.com/apache/echarts/issues/14592#issuecomment-813277981


   I resolved this issue just by using `min`. But I planned to use it in a dynamic setting, so I had then the issue that the data broke up too early like that:
   
   ![echarts](https://user-images.githubusercontent.com/63979635/113554484-b326ec80-95f9-11eb-8665-ee64b868828f.gif)
   
   But as it turned out this issue wasn't due to setting min dynamically. Shifting the data too early lead to that issue.
   So instead of shifting the data before pushing new data you should do it like that: `data = data.slice(-initial_data-buffer)`.
   This prevents shifting all the data if buffer is chosen as big as new data should be updated. So finally you'll have a much smootehr animation:
   
   ![echarts_2](https://user-images.githubusercontent.com/63979635/113555574-6e9c5080-95fb-11eb-8baa-387ba084ca11.gif)
   
    


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



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


[GitHub] [echarts] symlons closed issue #14592: How to get a proper xAxis animation for realtime data?

Posted by GitBox <gi...@apache.org>.
symlons closed issue #14592:
URL: https://github.com/apache/echarts/issues/14592


   


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



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