Pie Chart Label Spacing

Thread is closed for posting
2 posts, 0 answers
  1. Alex
    Alex avatar
    8 posts
    Member since:
    Apr 2013

    Posted 15 May 2013 Link to this post

    I'm having an issue spacing out labels for a pie chart. I've tried playing with label margins and positions with no effect. See attached Img. The problem is when two or more very small slices of the pie are next to each other the labels overlap. How can I organize or space out these labels?

    Thanks for any help.
  2. Rosko
    Rosko avatar
    137 posts

    Posted 20 May 2013 Link to this post

    Hi Alex,

    What you need to do is to set to true the IntelligentLabelsEnabled property. It can be done either programmatically or declaratively.

    <telerik:RadChart ID="RadChart1" IntelligentLabelsEnabled="true" runat="server">
    RadChart1.IntelligentLabelsEnabled = true;

    In case, this proves insufficient to achieve good appearance, you could increase the distance between the pie and the labels.
    <telerik:ChartSeries Type="Pie" Appearance-ShowLabelConnectors="true" Appearance-LabelAppearance-Distance="200">
    pieSeries.Appearance.LabelAppearance.Distance = 200;

    All the best, Rosko
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top