Skip to content

Bar width gets shrinked when value contains very precise numbers #4043

Description

@RiccardoRomagnoli

Reproduction link

Edit on CodeSandbox

Steps to reproduce

create a bar chart with very precise numbers

What is expected?

the bars mantain the barSize width

What is actually happening?

they get shrinked

Environment Info
Recharts v2.10.3
React 1.18
System win 10
Browser Chrome

If I round the numbers to 2 decimals points it works just fine..

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugGeneral bug label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions