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

Pie chart error on same values #24

Closed
mpalencia opened this issue Jan 19, 2022 · 1 comment
Closed

Pie chart error on same values #24

mpalencia opened this issue Jan 19, 2022 · 1 comment

Comments

@mpalencia
Copy link

Hi mate, got a bug on piechat if any of the values are the same

This works:

export const plByMonth = [
{ name: 'Jan', pl: 1000, avg: 500, inc: 300 },
{ name: 'Feb', pl: 2000, avg: 900, inc: 400 },
{ name: 'Apr', pl: 400, avg: 400, inc: 500 },
{ name: 'Mar', pl: 3100, avg: 1300, inc: 700 },
{ name: 'May', pl: 200, avg: 100, inc: 200 },
{ name: 'Jun', pl: 600, avg: 400, inc: 300 },
{ name: 'Jul', pl: 500, avg: 90, inc: 100 }
]

This will not work

export const plByMonth = [
{ name: 'Jan', pl: 1000, avg: 500, inc: 300 },
{ name: 'Feb', pl: 1000, avg: 900, inc: 400 },
{ name: 'Apr', pl: 1000, avg: 400, inc: 500 },
{ name: 'Mar', pl: 1000, avg: 1300, inc: 700 },
{ name: 'May', pl: 200, avg: 100, inc: 200 },
{ name: 'Jun', pl: 600, avg: 400, inc: 300 },
{ name: 'Jul', pl: 500, avg: 90, inc: 100 }
]

Im referring here on the 'pl'

@ghalex
Copy link
Owner

ghalex commented Feb 1, 2022

Duplicate of #23

@ghalex ghalex marked this as a duplicate of #23 Feb 1, 2022
@ghalex ghalex closed this as completed Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants