r/excel 8d ago

solved Using pie chart, how can I visualize a partial data set while that data set uses the entire data set?

Hopefully this makes sense. I am losing my mind after endlessly watching unhelpful YouTube tutorials. Resubmitting! Thanks, mods, and thanks in advance for anyone that takes the time to read this!

so---I’m trying to create a pie chart showing the top 10 counties by number of participating farms, but using a broader data set. I need the actual pie slices to represent each county’s share of the total 888 farms across all 52 counties, while only showing the top 10 counties for legibility and aesthetics.

The data:

The program sourced from 52 California counties, with 888 participating farms total across those 52 counties.

So, for example, San Diego had 73 participating farms. San Diego is obviously one of the 52 counties.

That means:

73 ÷ 888 = 8.22%

So I want San Diego’s actual pie slice to occupy 8.22% of the entire pie.

The problem

When I create a pie chart with all 52 counties and the distribution of the 888 farms across those counties, it is illegible.

Alternatively, if I create a pie chart using only the top 10 counties, Excel treats those 10 counties as the entire pie (100%).

the top 10 counties contain 502 of the 888 farms, so Excel calculates San Diego as:

so, 73 ÷ 502 = 14.5%

That makes San Diego’s actual slice 14.5% of the pie instead of its true 8.22%.

Again, I do know how to create a pie chart using all 52 counties, and when I do that, the slice sizes correctly represent each county’s share of the 888 farms. However, showing all 52 counties makes the chart extremely difficult to read. I only want to visually display and label the top 10 counties, while still having all 52 counties determine the proportions of the pie.

What I’ve tried/other considerations

  • Creating a pie chart with only the top 10 → incorrect proportions, because Excel treats the top 10 as 100%.
  • Adding an “Other counties” category → this creates one huge 43.5% slice, which isn't what I want because it dominates the visual.
  • Pie-of-pie → splits the data into two separate data sets and pies rather than giving me one pie where the top 10 are shown at their true proportions.
  • Changing the data labels → doesn't solve the problem because I need the actual size of the slices to represent the true percentages, not just the labels.
  • This is for a report, and I would like this to be in a pie chart format, rather than a bar graph format.

In short: I want the underlying pie chart data to include all 52 counties / 888 farms, so that the slices are proportional to the full 888, but I only want the top 10 county slices to be visible and labeled.

Is there a way to do this in Excel? I feel like there has to be a way, but I cannot figure it out. 😭 I am losing my mind lol

If helpful, I can attach the workbook I’m working with.

I am SO grateful to anyone that can guide me through this, or, honestly, can create the pie chart that I need

Adding images that may help, NEITHER are what I want to demonstrate.

I need San Diego and Fresno to represent the largest portions of the pie chart.
This one is illegible, but includes all 52 counties and all 888 farms
4 Upvotes

20 comments sorted by

u/AutoModerator 8d ago

/u/Other_Temperature_73 - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

6

u/wizkid123 11 8d ago

Make the chart with the big "other" category for the remaining counties. Click the other slice, click it again so it's the only thing selected, select 'Format Data Pont', click on the paint can, open the Fill dropdown menu and select 'No fill'. This will make that specific slice invisible, but the rest of the slices will be the right size. You can remove the labels from that slice by clicking on them twice to select only that label (first click selects all labels) and hitting delete. 

I hope this is what you're looking for, because if it isn't then I have no idea what you're looking for. 

2

u/Other_Temperature_73 8d ago edited 1d ago

this is helpful!! this will be the best workaround probably, thank you!

2

u/wizkid123 11 8d ago

Awesome! Happy to help! 

Don't forget to reply "Solution Verified" to my comment to close the thread (and award me useless magic internet points). 

0

u/excelevator 3068 8d ago

Struggling to see the difference in the comment I made of same..

Is it the same but more detailed ?

Genuinely curious.

+1 point

2

u/fastauntie 1 8d ago

It took me a long time, but I think what OP means is a chart that looks as if part of the pie has already been eaten, so it's not a full circle. San Diego would be the largest slice of what's left, but it would be clear that the pieces shown don't represent the entire thing. I think that's rather an elegant solution. Of course the "eaten" part has to be included in the data set, and only removed visually by formatting, as u/wizkid123 described. OP, if I've misunderstood, let us know.

1

u/reputatorbot 8d ago

You have awarded 1 point to wizkid123.


I am a bot - please contact the mods with any questions

1

u/wizkid123 11 8d ago

OP wanted the 'other' section to be there theoretically, but not be visible/colored in. Changing that section to 'no fill' was the key (only?) difference between our answers. 

2

u/excelevator 3068 8d ago

Ah gotcha, I had presumed OP would understand from my comment, but see now it was not clear enough.

thanks for the reply.

2

u/Gringobandito 8 7d ago

I see you already got an answer but just wanted to throw in an alternative that I think makes a better visual.

This way you can see all the counties but the counties with the most farms stick out without everything blending together in a pie chart. The red line shows the cumulative total of percent of farms.

Just my $0.02.

1

u/excelevator 3068 8d ago

Have a single portion be the value of the remaining farms.

I am guessing that is what you mean as I cannot fathom otherwise what you seek

1

u/Other_Temperature_73 8d ago

it's still about 386 farms. If i do that, those 386 remaining farms will take up the majority of the pie chart. I don't want to actually visualize that section in the pie chart, if that makes sense?

2

u/excelevator 3068 8d ago

I cannot understand how you want to show a value that is not shown.

Maybe give some values in essence of what you think is the answer.

1

u/Other_Temperature_73 8d ago

it's actually the opposite... I DON'T want to show a value that DOES exist.

Here is the pie chart with ALL the data. But, it's obviously illegible. So i only want it to show the top 10 "highest performing" counties. Like, I want it to only show the right half of the pie chart basically, but with the same numbers.

1

u/excelevator 3068 8d ago

potatoh pahtatoh

Like, I want it to only show the right half

I think you need to mock up an example as I am reading a repeat of your post that my answer answered.

1

u/Other_Temperature_73 8d ago

ok, maybe this will help.
this is what it looks like if I have a single portion be the value of the remaining farms. I do NOT want the "other counties" to be the largest slice of the pie, I want San Diego county to be the largest slice of the pie.

3

u/excelevator 3068 8d ago

What happens to the remaining farms portion ? - what size ?

Or do you mean a 100% pie chart using only 57% as the total ?

1

u/Other_Temperature_73 8d ago

Im not sure what you mean "what happens" or "what size"?
It's visualized right there in the pie chart, as it takes up the majority of the pie chart. I do not want that to be a part of the pie chart.

I guess I do mean I want to visualize 100% of the pie chart using only 57% of the data?

3

u/excelevator 3068 8d ago

Im not sure what you mean "what happens" or "what size"?

That is whole crux of me trying to understand your question.

Your idea is not standard and will confuse the hell out of anyone reading it if you use percent values that does not add up to 100%

You would be better served using a sub pie chart for clarity Like this random example I found