Skip to content

Stacked % Charts don't render for type number on X-Axis #6517

@RobinAtherton

Description

@RobinAtherton

How I caused this bug

I've recently upgraded from Recharts 2.6.x and updated to Recharts 3.3.0.

What is the current behavior?

As soon as the x-axis of a stacked % Area Chart is type="number" the data stops rendering.

What is the expected behavior?

Stacked % charts should work for x-axis type="number".

Please provide a demo of the problem in a sandbox

Here's the normal stacked chart example just with type number added and it just breaks the data completely.
https://stackblitz.com/edit/j22xpcdb?file=src/Example.tsx&showSidebar=0&terminalHeight=10

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

worked in 2.6.0, its broken in 3.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugGeneral bug label

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions