Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to manually invoke tooltips.custom / force re-render of tooltip #6156

Closed
basickarl opened this issue Mar 21, 2019 · 1 comment
Closed

Comments

@basickarl
Copy link

basickarl commented Mar 21, 2019

Hi!
I'm just wondering, how does one manually invoke the tooltip.custom function which then returns the tooltipModel?

I've written a custom tooltip, when I add an item I also remove an item in the data array. If I'm hovering over a point and do this and then do a chart.update, the chart updates, but the tooltip remains with the old values (the chart line shifts to the left one point, but the tooltip remains with information from the old point which has now moved).

Example:
Screenshot 2019-03-21 at 13 58 30

Or in other words, how do I force a re-render of the tooltip?

@basickarl basickarl changed the title How to manually invoke tooltips.custom How to manually invoke tooltips.custom / force re-render of tooltip Mar 21, 2019
@basickarl
Copy link
Author

This has been answered in: #4840

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant