Reputation: 10847
I have the goal of showing a tooltip on a near real-time chart that is updating constantly.
Using the standard tooltips in the chartjs
library, calling Chart.update()
will destroy the tooltip.
In the example here, if the user is hovering the chart, and the graph is updated, the tooltip goes away.
Note: if I change the chartjs version to 2.5.0
, there is no issue. It appears to be a bug in 2.7.2
How do I prevent this behavior?
Upvotes: 3
Views: 1569
Reputation: 352
Right now there seems to be no official solution. There is still a discussion ongoing on how to fix this: Do not hide tooltip when update is called
Upvotes: 2