Skip to content

in Pie chart Labels gets re render when any of its property is changed on external events #5045

Description

@piyushyadav1617

Do you want to request a feature or report a bug?

Request for a bug

What is the current behavior?

Labels get re render when any of its property is changed conditionally with mouse pointer events

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox or similar (template: https://codesandbox.io/p/sandbox/simple-line-chart-v25dl4).

Add a mouseEnter and/or mouseLeave event on the Pie and update the fillOpacity of the cell
codesandbox

What is the expected behavior?

The labels should not hide and remain visible

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

2.12.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    animationIssues regarding animationbugGeneral bug label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions