This is a migrated thread and some comments may be shown as answers.

Pie Chart item labels overlapping

5 Answers 197 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Amy
Top achievements
Rank 1
Amy asked on 04 Nov 2010, 06:56 PM
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!

5 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 09 Nov 2010, 05:24 PM
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
0
Amy
Top achievements
Rank 1
answered on 23 Nov 2010, 05:26 PM
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
0
Amy
Top achievements
Rank 1
answered on 23 Nov 2010, 05:27 PM
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
0
Evgenia
Telerik team
answered on 25 Nov 2010, 07:30 AM
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.
0
Lindsay Kemp
Top achievements
Rank 1
answered on 08 Jun 2011, 03:31 PM
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
Tags
Chart (Obsolete)
Asked by
Amy
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Amy
Top achievements
Rank 1
Lindsay Kemp
Top achievements
Rank 1
Share this question
or