Hello,
Sorry if I am posting this under the wrong section.
My chart JS version: 2.1.3
I am having some Bar charts on the page on the bar of each I want to show the data value.I referred to the solution here http://stackoverflow.com/questions/31631354/how-to-display-data-values-on-chart-js (see potatopeelings & Hung Tran answer)
This work fine but the mouse over on the bars triggers the animation onComplete callback which causes the rewriting of the values on the bars & give a blinking impression.Is there a way to prevent this?
I tried to implement the onAnimationComplete callback as per potatopeelings answer but it seems his solution is for Version: 1.0.2 & I am unable to implement the same for my version.
Would using onAnimationComplete & onComplete callbacks yield same result?I can see that the potatopeelings do not have the blinking problem(http://jsfiddle.net/uh9vw0ao/).
my code is here: http://pastebin.com/tT7yTkGh
P.S: I have tried using afterDraw callback but it also seem to be firing on mouseover of the bars.I am also showing tooltips.
thanks
@techie28 @romanovma can you have a look to the discussion in #3250. I think that a workaround for your cases would be to not animate hovering (
{ hover: { animationDuration: 0} }
). And I’m pretty sure you can even keep tooltips.@etimberg, it might be a duplicate of #3169