Jump to content
Software FX Community

pointlabels alignment


User (Legacy)
 Share

Recommended Posts

I'm having trouble with the alignment of pointlabels.  As you can see in the

attached, the slice below May appears to have no label, and continues to be

mis-aligned below until December. Changing PointLabelAlign properties seems

to have no affect on my chart. The following code is what I've used to add

point labels when the chart type is pie:

cht.PointLabelsFont.Name = "Arial"

cht.PointLabelsFont.Size = 6

If (intNumPoints <> 0) Then

For intPoint = 0 To intNumPoints - 1

cht.Axis(AXIS_X).Label(intPoint) = ai_strData(intPoint,

ai_intXAxisCol)

Next

End If

Also, is there an easy method of re-ordering slices, and consolidating small

slices below a threshold amount to an "Other" Slice?

Thanks,

Brian

Link to comment
Share on other sites

You are right. The PointLabelAlign property is not used in Pie charts, the

alignment of labels in Pie charts occurs automatically and varies among

different slices depending on their position and size.

In 3D Pie charts labels below the middle of the Pie are moved down as much

as the Pie thickness.

I'm afraid there is no API that will allow you to control the position of

these labels so I will have to suggest to either go to a 2D Pie chart or use

the legend box instead.

We have added a lot of new functionality for Pie charts in Chart FX 6 (for

.NET) including 3 types of labeling that eliminate the problem you are

experiencing.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...