Skip to content

Brush component displays all bars instead of selected range when using start/end indices with many bars #6984

Description

@rafaelcardeallodi

What is the current behavior?

When using the Brush component with a large number of bars and specifying the start and end indices, if the page state changes, the brush range incorrectly displays all bars instead of the user-selected range.

What is the expected behavior?

The brush should only display the bars within the selected range, regardless of page state changes.

Please provide a demo of the problem in a sandbox

https://stackblitz.com/edit/vitejs-vite-yudjs18x

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

All browsers

Version: "recharts": "3.7.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugGeneral bug labelenhancementEnhancement to a current API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions