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

Values of 0 not created in pie graph. Feature? #60

Open
MattyBalaam opened this issue Mar 12, 2015 · 4 comments
Open

Values of 0 not created in pie graph. Feature? #60

MattyBalaam opened this issue Mar 12, 2015 · 4 comments
Labels

Comments

@MattyBalaam
Copy link

I have perhaps a slightly unusual use case. I have dynamically created data where some options will be 0. My assumption has been that using nth-child in CSS to cycle through elements to change the fill would result in the same colours for both bar and pie graphs to allow the use of a visual key.

However, I have noticed that any 0 values are not generated in the pie version, so the colours do not match.

As a workaround I am pushing in a figure of 0.0001 instead, but wanted to flag this up in case you felt this was not desired behaviour.

@benpickles
Copy link
Owner

I'll look into it.

@MattyBalaam
Copy link
Author

Thanks. Really enjoying the leanless of this library by the way.

@benpickles benpickles added the bug label Apr 16, 2015
@webmutation
Copy link

Ditto, trying to render doughnuts with values like 0,5,0 does not render the middle value, but it does render stuff like 3,0,0 or 0,0,8, just not middle values.

@tobiascapin
Copy link

I have another strange behavour with initial value 0, please look at this: http://jsfiddle.net/obywd0up/1/
If you startup a chart with initial value of 0, then you cannot use fraction (1/2) anymore. Therefore you can use csv values (1,2).

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

No branches or pull requests

4 participants