Jump to content
Software FX Community

Pie Chart, forcing labels inside.

Recommended Posts

I'm looking to create a pie chart where the labels are inside the pie chart even if the slice is too small without changing the size of the text. The text would have to overlay other sections. Is this possible? 

Share this post

Link to post
Share on other sites

Hello miketesch,

 Unfortunately it is not possible to have the pie labels overlap other slices. Your only options would be to either draw outside the slice or make the font size scale to the size of the slice.


Share this post

Link to post
Share on other sites

Note that to set the font size to scale so that the percentage fits in the slice you would do

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

            pie.ScaleLabels = true; 

There is no way to force inside labels without scaling them, please let is know if this works for your scenario.


Share this post

Link to post
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.

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...