Pie Slice Label Position

mikeymay

Well-known Member
Joined
Jan 17, 2006
Messages
1,645
Office Version
  1. 365
Platform
  1. Windows
I have a pie chart that uses Best Fit for the labels.

Is there a way of establishing if the Best Fit location is inside the slice or outside the slice?

I am using a loop to go through all the slices and dependant on the fill colour, change the font colour to either black or white. As the backcolor of the chart is no colour/white, using a white font for a lable makes it invisible when the font for the slice colour needs to be white.

In the image below, you can see the leader line to font that is white
1708690585085.png


I cant use a dark colour for the back colour as this would present the same problem for label fonts that are black and are on the outside of the slice.

TIA
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
IMO if you have more than 3 segments, you shouldn't be using a pie chart. With all those labels and figures, you might as well just have a table! ;)
 
Upvote 0
IMO if you have more than 3 segments, you shouldn't be using a pie chart. With all those labels and figures, you might as well just have a table! ;)
Agreed but I have paying client asking for this so as much as I can provide input, it's their and their stakeholders decision....
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top