question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When is the animation tooltip callback called?

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kurklecommented, Aug 5, 2020

Looks like tooltip animation is not scriptable.

0reactions
stockiNailcommented, Mar 4, 2021

This was most likely fixed in beta.11

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found