Skip to content

BarStack / BarChart is not handling stackOffset = sign correctly. #6802

Description

@mike-paretos

What is the current behavior?

When BarStack is used with stackOffset = sign, and negative values, some bars are not rendered.

Image

What is the expected behavior?

Same as in regular bar charts, no missing bars.

Image

Please provide a demo of the problem in a sandbox

https://stackblitz.com/edit/f6qx2uhq?file=src%2FExample.tsx

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

v3.6.0

Metadata

Metadata

Assignees

Labels

bugGeneral bug label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions