Jump to content
Software FX Community

Labels outside of pies, bars, and areas


Mick

Recommended Posts

Doing this to a pie chart gets the labels to appear outside of the pie with little connecting lines:

((ChartFX.WPF.Galleries.Pie)chart1.AllSeries.GalleryAttributes).LabelsInside = false;

What is the equivalent syntax for Bar / Area charts to get point/series labels to show in the chart?

 

Thank you,

Michael

Link to comment
Share on other sites

In Bar/Area/Line charts you can control the point labels location by using the following properties

chart1.AllSeries.PointLabels.VerticalAlignment

chart1.AllSeries.PointLabels.HorizontalAlignment

In the case of bars we also honor the following property

chart1.AllSeries.PointLabels.Anchor

Note that all these can also be set on a per-series basis (e.g. chart1.Series[0].PointLabels.VerticalAlignment) 

JuanC

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.

×
×
  • Create New...