Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nivo Bar Chart: Incorrect Decimal Rounding in Labels #2596

Open
calher9 opened this issue May 27, 2024 · 0 comments
Open

Nivo Bar Chart: Incorrect Decimal Rounding in Labels #2596

calher9 opened this issue May 27, 2024 · 0 comments

Comments

@calher9
Copy link

calher9 commented May 27, 2024

When using Nivo Bar charts with decimal values, the graph sometimes displays long decimal places incorrectly. Specifically, the sum of decimals does not round properly, causing visual inconsistencies in the labels.

I have reproduced the issue in the following sandbox.https://codesandbox.io/p/sandbox/angry-curie-2tmw7w?file=%2Fsrc%2FApp.js%3A7%2C1

The image below shows the totals with decimals:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant