Skip to content

TwoLevelPieChart with activeShape does not work as expected #6259

Description

@uncaught

What is the current behavior?

When combining the TwoLevelPieChart example with the CustomActiveShapePieChart from the documentation, the detection of what pie-slice is hovered seems broken.

Image

What is the expected behavior?

Only the hovered pie-slice's active shape should be rendered.

Please provide a demo of the problem in a sandbox

https://stackblitz.com/edit/react-lnlglkfj-p1air5gc?file=src%2FExample.jsx

Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?

Recharts: 3.1.2
Chrome: 139.0.7258.155 and Firefox: 142.0.1
Windows 11

I didn't try this in a previous recharts version.

Metadata

Metadata

Labels

bugGeneral bug label

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions