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/02/20 12:01:00 UTC

[GitHub] [echarts] Bilge opened a new issue #14307: Time-based x-axis slow refresh rate v5 regression

Bilge opened a new issue #14307:
URL: https://github.com/apache/echarts/issues/14307


   ### Version
   5.0.2
   
   ### Steps to reproduce
   |v4 (smooth)|
   |-|
   |![i3CBjXDLdp](https://user-images.githubusercontent.com/470626/108594371-9dbf7100-7371-11eb-83ee-2e07e733a768.gif)
   
   |v5 (stutter)|
   |-|
   |![WOE7tco8vu](https://user-images.githubusercontent.com/470626/108594372-9f893480-7371-11eb-8a36-543aff907fc5.gif)
   
   ### What is expected?
   When user scrolls the view, the x-axis should scroll smoothly. In v4 this was the behaviour.
   
   ### What is actually happening?
   Since v5, the time-based x-axis updates very slowly while scrolling. The refresh rate of the chart in general is unaffected: the graph and the dataZoom component still update normally; only the x-Axis text itself appear to update slowly.
   
   ---
   Additional observations:
   These two graphs have the same configuration, the only difference is the v4 and v5 engines. However, there are more behavioural differences, regarding the x-axis, than just the refresh rate.
   
   1. We can also observe that in v4, the axis prefers to try to keep the previous and following ticks attached to the ends of the axis at all times, wherever possible. In v5, this does not occur: as soon as the ticks is scrolled out of view, it disappears instantly. This might be considered a good thing, but the problem is this behaviour does not seem to be configurable and simply changed due to the version upgrade.
   2. We can observe that in v4, the axis appears less cluttered, with fewer ticks. That is, v4 prefers 3-month intervals whilst v5 chooses 1-month intervals, even though both axis have `minInterval` set to 1 month (`1000 * 60 * 60 * 24 * 30`). This might be considered a good thing, since v5 is exercising its right to use the absolute minimum interval allowed, but again, this behaviour only changed due to the version upgrade and it does not seem to be configurable how cluttered the x-axis may be. For example, even though we did allow a 1-month minimum, we might only want that minimum to be used for small time ranges, such as up to 6 months, and for charts spanning several years, we might expect the library to use 2 or 3-month intervals, up to the maximum allowed (currently `maxInterval` is configured to 1 year).
   
   <!-- 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] pissang commented on issue #14307: Time-based x-axis slow refresh rate v5 regression

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


   I think it's because the animation easing is different. Please try changing animationEasingUpdate from `cubicInOut` to `cubicOut`


-- 
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 #14307: Time-based x-axis slow refresh rate v5 regression

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


   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