Skip to content

Missing debounce prop replacement in v3.0 - Performance regression for large datasets #6207

@diellzabytyqii

Description

@diellzabytyqii

Feature Request

Is your feature request related to a problem?
Yes. After upgrading to v3.0, charts with large datasets (500+ data points) have significant performance issues. The debounce prop was removed with the react-smooth dependency, but no equivalent performance optimization was provided.

Describe the solution you'd like
Either:

  1. Restore a debounce prop or similar performance optimization prop
  2. Add built-in data sampling/virtualization options
  3. Provide official performance optimization patterns in the migration guide

Previous working code (v2.x):

<ChartContainer debounce={200}>
  <LineChart data={largeDataset}>
    {/* 1000+ data points - worked smoothly */}
  </LineChart>
</ChartContainer>

Current situation (v3.0):

  • Charts are slow/laggy with large datasets
  • Users must implement custom workarounds (data sampling, disable animations, etc.)
  • No official performance guidance provided

Additional context
The migration guide mentions "all animations are now maintained within recharts itself" but the new system doesn't handle large datasets as efficiently as the previous debounce implementation.

Many users likely depend on this functionality for real-world applications with substantial data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionUse this label when an issue is submitted without proper reproductionpending responsePending response from the issue requester

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions