Skip to content

Proposal: Deprecate LineChart, AreaChart, BarChart, ScatterChart in favour of ComposedChart #3380

@nikolasrieble

Description

@nikolasrieble

It is not clear what benefit one gains by using specific Cartesian Chart wrappers such as the AreaChart or the LineChart, when instead all charts can be achieved using the ComposedChart.

Proposal:

  • Deprecate LineChart, AreaChart, BarChart, ScatterChart
  • Rename ComposedChart to CartesianChart

Advantages:

  • Reduced API, thus user-facing complexity
  • Reduced bug surface

Disadvantages:

  • ?

Open Questions:

  • The ScatterChart currently has a separate Tooltip behaviour - should the Scatterplot remain?
  • Is the interface of the ComposedChart equal to the union of fields of the LineChart, BarChart and AreaChart? What is missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeUse this label to indicate a breaking change in the Recharts APIrefactorPRs that refactor existing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions