Skip to content

[Bug]: Excessive tooltip label callback calls #1210

Open
@suchrile

Description

@suchrile

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

When hovering and continuously moving the cursor over or between data segments, the callback is called an excessive number of times (check the console).

Reproduction

https://codesandbox.io/p/devbox/cranky-frog-d8jp65?file=%2FApp.tsx%3A70%2C27

chart.js version

4.4.2

react-chartjs-2 version

5.2.0

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions