Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Navars
Creator
Creator

How to Display Negative values in Pie Chart?

Hi folks,

In my data it has some negative values, I want to show that negative values as well as positive values in my pie chart.

find the data and sample chart, Please help me on that.

8 Replies
oknotsen
Master III
Master III

If you want to display positive and negative numbers, a pie chart is not the correct / preferred visualization.

Consider using a bar chart instead.

May you live in interesting times!
jonathandienst
Partner - Champion III
Partner - Champion III

How do expect a pie chart to reflect the negative numbers if there also positive numbers? Onno is correct -  a pie chart cannot be used for such as visualisation, and any attempt to force (by Fabs() ing the results, fo example) it will distort the result significantly.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
vikasmahajan

use FABS  command

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
oknotsen
Master III
Master III

Nah, use a better visualization instead .

May you live in interesting times!
jonathandienst
Partner - Champion III
Partner - Champion III

DO NOT JUST USE THE FABS COMMAND! This just distorts the data and is still not a useful visualisation

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
vikasmahajan

I think instead of bar chart you can use water fall chart !! for better visualization

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Navars
Creator
Creator
Author

I tried with FABS it converts the values -ve to +ve and it displays, But my requirement is it shows both -ve as well as +ve values.

sudeepkm
Specialist III
Specialist III

I do not want to put it as a suggestion because I do not think PIE chart should be used when you have negative values.

But one possibility is to some how indicate which slices are negative. That you can achieve it by using PIE pop out to show those which are negative.

As Vikas mentioned without using fabs in your expression you can not build the PIE chart. Once you use the fabs in your chart expression then you go to Pie Pop out option to put a condition to show the negative ones as pop out slices.

T180131.PNG

not sure how end users will take it. but my suggestion to use a st. table with color format to indicate the negative ones than positive values.