When is the animation tooltip callback called?
See original GitHub issueI’m testing the animation callback on tooltip in order to create the animation options at runtime (at chart level):
options: {
responsive: true,
tooltips: {
animation: function(ctx){
console.log("tooltips", ctx);
}
}
}
It seems that the function is never called.
Here is codepen: https://codepen.io/stockinail/pen/MWyWJxR
I don’t know if it’s a bug or I’m making any mistakes.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Tooltip - Chart.js
A tooltip item context is generated for each item that appears in the tooltip. This is the primary model that the callback methods...
Read more >tooltip.animation | highcharts API Reference
The name of a symbol to use for the border around the tooltip header. Applies only when tooltip.split is enabled. Custom callbacks for...
Read more >Tooltips - Bootstrap
Documentation and examples for adding custom Bootstrap tooltips with CSS and JavaScript using CSS3 for animations and data-attributes for local title storage.
Read more >javascript - How to use $.when for a callback function? - Stack ...
I want to say when this function close() is finished run this function init(). But it's not working for me. $.when(close(toolTip)).
Read more >Timeline | Tooltip Callback | JET Developer Cookbook - Oracle
Pass the function to the timeline tooltip.renderer attribute. The timeline will then call the function on hover to generate the tooltip and append...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like tooltip animation is not scriptable.
Yes, for this reason I have closed it! Now I have to implement tooltip animation config in my lib because I had put it on hold. I’m implementing new animation configuration. Sometimes I review my still open issues and to close them if outdated or if I have the answer/solution that at the creation time I didn’t.