Skip to content

BarChart is not working with vertical layout #6034

Description

@WojakGra

Do you want to request a feature or report a bug?

A bug

What is the current behavior?

If BarChart is set to layout="vertical" there is a problem with rendering a working BarChart. I use BarChart as stacked and is not working as it should.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox or similar (template: https://codesandbox.io/p/sandbox/simple-line-chart-v25dl4).

Just add layout="vertical" to any BarChart in examples

What is the expected behavior?

To render working BarChart

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

Version of Recharts 3.0.2, worked on 2.15.3. I use Chrome on Windows 11

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions