Skip to content

Tooltip showing in wrong position and with wrong data #10141

@nicetomytyuk

Description

@nicetomytyuk

Expected behavior

The tooltip should show dataset based on hovered position.

Current behavior

The tooltip is drawn in wrong dataset based on hover and it's data is not coherent with the dataset itself.

Reproducible sample

https://codepen.io/nicetomytyuk/pen/rNYjOrr

Optional extra steps/info to reproduce

In example chart try to hover 8:00 dataset, you will get in tooltip even 'NON RISCOSSO' which is not present in 8:00 dataset, if you try to hover on 9:00 green bar your tooltip will be drawn at 8:00 with wrong data, and same for other datasets.

Possible solution

No response

Context

No response

chart.js version

v3.7.0

Browser name and version

No response

Link to your project

No response

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