Pie Chart formatting

O

orcutt

I have a problem with pie chart formatting. I have programmed a tool
that
creates pie chart according a set of data that can change according the

source I use (= #data can be different).

So, every time I run it the labels are placed anywhere in an ugly way.
How can I control their position?

thanks

Orcutt
 
J

Jon Peltier

Orcutt -

You can impose a position for these labels:

ActiveChart.SeriesCollection(1).DataLabels.Position = x

where for a pie chart, x is one of the following:

xlLabelPositionCenter
xlLabelPositionInsideEnd
xlLabelPositionOutsideEnd
xlLabelPositionBestFit

BestFit is the default, but I understand why you dislike it. I would
try Center or InsideEnd if the labels aren't too long.

- Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top