Skip to content

Tooltip not reflecting x-axis on <BarStack /> components #1876

@ianoc90

Description

@ianoc90

Hi,

Seeing an issue with the tooltip in the <XYChart /> and I'd love some help getting to the bottom of it. When hovering over a bar stack, it doesn't seem to be picking up the correct nearestDatum meaning that whats displayed in the tooltip is not reflective of whats visible in the x-axis. There is also some strange behaviour around datumByKey where by not all the data is listed, making it difficult to display accurate information in the tooltip. I've put together a codesandbox to recreate the issue outside of our application code.

Thanks in advance for any help

Some examples:

image

Here I'm hovering over the 29th May, but nearestDatum is 5th June


image

12th June partially showing showing 26th June's Data


image

Data missing from 26th June


image

More data missing from 10th July

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions