Pie Chart and Data Labels

M

Me Padre

Hey all,

I am pulling my hair out on this one and can not seem to
find the solution.

I am using the following to create the series for my pie
chart:

WITH cht.SeriesCollection.Add
.SetData c.chDimCategories, c.chDataLiteral, arrCats
.SetData c.chDimValues, c.chDataLiteral, arrData
SET oLabels = .DataLabelsCollection.Add
oLabels.HasValue = True
oLabels.HasPercentage = True
oLabels.Position = c.chLabelPositionOutsideEnd
END WITH

The problem is that if I comment out the HasValue or
HasPercentage, it does not make a difference (both always
appear). If I take both HasValue and HasPercentage out
they do not appear at all.

I really would like to have the labels positioned outside
of the pie. Thus why I selected
chLabelPositionOutsideEnd. No matter what I put for
position, they always appear in the center of the pie
segment. Being as I am displaying both a value and
percentage, they quite often overlap and cross segment
slices.

Any help would be greatly appreciated.

MePadre
 

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