on 10-23-2013 4:20 PM
Hello,
Anyone have good suggestions on avoiding NaN% on pie chart when the value is zero?
I am using query browser to bring the values.
Thanks in advance.
Arun
Better not to show the chart in this case and show a "No Data" Label instead.
How to do it ?
Suppose C3:D5 is the data grid. Write formula in E column as shown so that it displays blank if the data is 0. Now use E3:E5 as data in pie chart. Use ignore blanks at the end of range option in pie chart.
In D1, use a formula to get sum of the data set. If it is 0, then we need to show a no data label. I assume there will be no negative value as it is a pie chart.
Now add a label with text "No Data to display" and add dynamic visibility as show component when D1=0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arun
Create a dynamic visibility logic like Arijit has suggested. When you have all zero value instead of showing a "No data Label" show a second Pie chart but in this one don't have the data label> Percentage enabled in Appearance tab. That way it will only show 0 for all the segments.
Thanks
Runali
Can you explain when you are seeing NaN% and is there any way replicate that behavior?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.