New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chart seems to be updated twice in a row #6557
Comments
The axis may be updated twice in 2.8.0 and earlier in order to size the various chart components. In |
Thank you, I've checked out master and the issue is not there anymore. Every hook is only called once. Fixed here then. :) Great great great. 👍 But now I have small problem, I am stuck with 2.7.3, because I always need the last tick to be displayed, which isn't working in 2.8.0 anymore due to breaking changes. Could you point me to the fix of the double rendering prevention, so I could try to bring this into a internal 2.7.3 fork? I am also willing to help with the 6154 issue somehow, if you don't mind. EDIT: |
The change with the fix was #6304 One of the main reasons the autoskip behavior was reverted was because it caused the ticks to no longer be evenly spaced and would cause a large gap at the end of the axis. I'm curious what your use case is. I'd like to learn more about the reasons users want to always show the last tick as it may help us in designing new solutions. |
Thanx a lot. I've described my use case here not be off-topic: |
Ok. I will close this issue then since the twice in a row issue is solved |
I just noticed that all hooks in my self written plugins and all axis callbacks are called twice,
so I presume the chart is running it's update and drawing cycle twice somehow.
Is this maybe expected behavior?
I measured from
beforeUpdate
toafterUpdate
and this needs ~15ms. Running twice this is 30ms. On some pages I have 5 charts. 150ms is already very noticeable.Expected Behavior
Run the chart drawing/update cycle only once.
Current Behavior
The chart cycle is running twice. All hooks and callbacks are called twice.
Steps to Reproduce (for bugs)
duration: 0
update
ed.The text was updated successfully, but these errors were encountered: