Skip to content

[BUG?] Too many datapoints being hovered/in tooltip (mode: 'x') #5231

@mwoco

Description

@mwoco

If you create a chart with hover-mode 'x'/tooltip-mode 'x' and many values in its datasets (try 500), tooltips will be looking like this:
grafik

As you can see in the image more than one datapoint per dataset is being 'hovered' and congruously the tooltip shows all of them.

I would expect to see only the one datapoint per dataset, which is closest to the mouse cursor, (preferred method) OR the API to give me a convenient way to limit the number of datapoints per dataset.

Situation can be improved by reducing the hoverRadius. But this also decreases usability. Is the 'filter' callback perhaps an option here? The 'index' mode is not an option in this scenario, because values can be missing from time to time in one dataset or the other.

Thank you for your efforts!

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