1👍
✅
Your problem is that onComplete
will be called at the end of the animation. That is how onComplete
is supposed to work. If there is a tooltip to be drawn, onComplete
will be called after the tooltip has been drawn, since drawing the tooltip is part of the animation. This is the reason that your texts are drawn above everything else. What you could do is create (and register) a plugin to draw your texts (ditch the onComplete
approach). Look at the docs about creating a plugin. You will have to override one method only (play around to find out which method to override, see some plugin examples, also pay attention to how easing
is used) where you should be able to use your current code with just a few changes.
Source:stackexchange.com