Skip to content

Bug - Charts - Interactive legend #11724

@rebeccaalpert

Description

@rebeccaalpert

Describe the problem
In charts with interactive legends, the mouseover behavior stops working if you have two different data sources hooked up to it that have different property ordering.

How do you reproduce the problem?
You can see the problem here: https://codesandbox.io/p/devbox/blissful-sound-jc6t2y?file=%2Findex.js&workspaceId=ws_XJDbnQ4RTGsaMiqYAaL6TA

Try the legend. It should work. Click the button to change the data out. It should break.

Image

If you copy rawData2 into rawData and change some values to be different, the problem goes away. Clicking also seems to fix the issue.

Expected behavior
I would expect mouseover to work for dynamic data, regardless of order.

Is this issue blocking you?
I guess we can try dropping it or using separate charts for the two data sources for now. Seems sad we can't just use one dynamic chart.

Screenshots
If applicable, add screenshots to help explain the issue.

What is your environment?

  • OS: iOS
  • Browser Chrome
  • Version Version 134.0.6998.119 (Official Build) (arm64)

What is your product and what release date are you targeting?
Digital Roadmap

Any other information?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions