Skip to content

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

@basickarl

Description

@basickarl

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions