Skip to content

Custom shape for Line #6511

Description

@tarik02

Is your feature request related to a problem? Please describe.
We are developing some charts using Recharts library. We got some cool-looking charts with Recharts v2 and some hacks, see example below.

The implementation was pretty hacky (taking class Line component from recharts, extending it and overriding method renderTicks). With recharts 3 it is no longer a class component and we can't do anything with internals.

Describe the solution you'd like
We already have shape prop for most primitives like Bar, Area, etc.
The same we can have for <Line>, so we can put some custom component instead of <Curve> inside it.

Describe alternatives you've considered
Copy whole <Line> component from recharts library to project and customize it there.

Additional context

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions