Open jayme-github opened 10 years ago
Values below zero on the piechart, that doesn't seem a good idea. I would simply recommend to sanitize your data before hand
Don't get me wrong here, the values are not negative, only very small and already sanitized! Maybe the problem is the big spike between values above 1k and values below 0. But I don't see why this should not be possible.
I think I got confused by what you wrote here "when mixing values above and below zero." Anyway I think the best way to track this down would be to test directly on nvd3 https://github.com/novus/nvd3 and reproduce it there, if that's the case, then you can open an issue to nvd3
Thanks for your reply. As this is reproducible when using nvd3 directly, I've opened a nvd3 issue and I'm closing this one. https://github.com/novus/nvd3/issues/492
I think we can leave this open until thisis solved, it's likely we need to update our libs once they have solved the issue. Thanks for tracking this down ;)
I tried the django-nvd3 pieChart example and the chart layout seems to break when mixing values above and below zero.
The following code is generated:
Leading to a chart looking like this:
When increasing all values above 0 (or decrease below 0) the layout seems correct. It's clear to me that those small values would not really be visible in the first place but deselecting the big ones would bring them up.
Is there a way to get around this or am I doing something wrong here?