Pie Chart item labels overlapping

Thread is closed for posting
6 posts, 0 answers
  1. Amy
    Amy avatar
    113 posts
    Member since:
    Aug 2010

    Posted 04 Nov 2010 Link to this post

    I have a pie chart when rendered has overlapping item labels due to two of the pie 'slices' being less than 1% of the pie (see attached screenshot).  I've searched through the forum for pie charts and have implemented the various suggestions but the labels still overlap.  Could someone provide suggestions on how to get the labels to not overlap?

    Here's what I have in the aspx page:
    <telerik:RadChart ID="rcPrePackaged" runat="server" DefaultType="Pie" Width="710px" AutoTextWrap="true" OnItemDataBound="rcPrePackaged_ItemDataBound" Skin="LightGreen" OnBeforeLayout="rcPrePackaged_BeforeLayout">
       <Appearance Dimensions-Width="600px">
       </Appearance>
       <Series>
          <telerik:ChartSeries Name="Recording Status" Type="Pie" DataYColumn="iCount">
          <Appearance LegendDisplayMode="ItemLabels" ShowLabelConnectors="true">
             <LabelAppearance Distance="20"
             </LabelAppearance
          </Appearance>
          </telerik:ChartSeries>
       </Series>
    </telerik:RadChart>

    And in the code behind:
    ' Set additional chart properties and settings.
    rcPrePackaged.ChartTitle.TextBlock.Text = "Pre-Packaged Items"
    rcPrePackaged.ChartTitle.Visible = True
    rcPrePackaged.Series(0).Appearance.Border.Visible = "true"

    Note I did try setting the 'LabelConnecter-Style' to be "Alice-Blue", however, the connectors were no longer visible so I removed that line of code.

    Thanks!
  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 09 Nov 2010 Link to this post

    Hello Amy,

    Try our Intelligent Labels feature as it dramatically increases readability in very busy charts and you'll see that Pie's Labels will no longer overlap. For more information about this feature take a look at our demo - http://demos.telerik.com/aspnet-ajax/chart/examples/newfeatures/intelligentlabels/defaultcs.aspx with full source code.
    Meanwhile here is how to turn on this feature without changing any code line:
     
    <telerik:RadChart ID="rcPrePackaged" runat="server" DefaultType="Pie" Width="710px"
               IntelligentLabelsEnabled="true" AutoTextWrap="true" Skin="LightGreen">

    Regards,
    Evgenia
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Amy
    Amy avatar
    113 posts
    Member since:
    Aug 2010

    Posted 23 Nov 2010 Link to this post

    Evangia,

    Thank you for responding!  I had to stop development work on the pie charts for the moment, however, will let you know if the suggestion you provided works once I am working with the charts again.

    I sincerely appreciate your help!
    Thank you
  4. Amy
    Amy avatar
    113 posts
    Member since:
    Aug 2010

    Posted 23 Nov 2010 Link to this post

    Evangia,

    Thank you for responding!  I had to stop development work on the pie charts for the moment, however, will let you know if the suggestion you provided works once I am working with the charts again.

    I sincerely appreciate your help!
    Thank you
  5. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 25 Nov 2010 Link to this post

    Hi Amy,

    I am looking forward to hearing from you. Do not hesitate to contact us if any more questions arise.

    All the best,
    Evgenia
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  6. Lindsay Kemp
    Lindsay Kemp avatar
    1 posts
    Member since:
    Oct 2009

    Posted 08 Jun 2011 Link to this post

    Hi Evgenia,

    I too was looking for a solution to this issue and it took me a while to find this post!
    It worked a treat for me anyway... thankyou very much for this excellent solution.

    Lindsay
Back to Top