-
Notifications
You must be signed in to change notification settings - Fork 14
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
Donut 0 value when compared to lines and bar #13
Comments
Hello, thanks for your message, so far it works well if at least one value is not equal to 0. But actually, I am not really what should be shown if every value is equal to 0. Probably better to display a message ("No data for this chart") like when the data array is empty Morris.Donut({
element: 'chart_donut',
data: [
{label: 'Label 1', value: 1 },
{label: 'Label 2', value: 0 }
],
donutType: 'pie',
dataLabels: true,
dataLabelsPosition: 'outside'
}); |
"I am not really what should be shown if every value is equal to 0" It think people complain about this not because of values, the graph is correct... it's just because of design and display like my screenshot. |
If you like this plugin, please star it :) |
Hi there,
![donut.png](https://camo.githubusercontent.com/8a204ec6ba2f346323a471726c5f525c5cf4a2203508e4525dac44e1cf2c2f06/68747470733a2f2f692e706f7374696d672e63632f5256637638674a462f646f6e75742e706e67)
Great job with fork, I'm using it on a project to display graph data.
I've seen people complaining about this in several places "impossible to display donut graph with 0 data values (just displays empty space as you know)
But it's weird the same data... with 0 values is displayed in both lines and bars graphs, these graphs get generated with 0 vales... awesome.
It would be great if donut graphs worked the same way, the graph would be generated qith 0 vales.
The text was updated successfully, but these errors were encountered: