Pie Chart labels

11 posts, 0 answers
  1. Saravanan Thiruchabai
    Saravanan Thiruchabai avatar
    11 posts
    Member since:
    Mar 2010

    Posted 31 Mar 2010 Link to this post

    Hi

        I am have attached a jpeg of two pie charts. 1st I got from google and the 2nd one created using Telerik RadChart for Silverlight. Is it possible to have the labels(not on top of the pie) seperately with a arrow point to the pie like it is in the 1st chart.

    Thanks
    Saran
  2. Velin
    Admin
    Velin avatar
    391 posts

    Posted 01 Apr 2010 Link to this post

    Hi Saravanan Thiruchabai,

    You can achieve similar look using the new labels API we added to the last version of the control. Here is a sample code:
    PieSeriesDefinition def = new PieSeriesDefinition();
    def.RadiusFactor = 0.5;
    def.LabelSettings.ShowConnectors = true;
    def.LabelSettings.SpiderModeEnabled = true;

    Regards,
    Velin
    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. DevCraft banner
  4. Marcus Lambert
    Marcus Lambert avatar
    41 posts
    Member since:
    Aug 2009

    Posted 08 Apr 2010 Link to this post

    Hi,
    I take it that you cant do this in XAML at the moment?
    Marcus
  5. Oztern Technology
    Oztern Technology avatar
    7 posts
    Member since:
    Dec 2009

    Posted 09 Apr 2010 Link to this post

    Hi
    The explained properties can't be found on the 2010 version of telerik. Can you please help
    SUNU
  6. Velin
    Admin
    Velin avatar
    391 posts

    Posted 13 Apr 2010 Link to this post

    Hello Marcus,

    Here is how you can set up the same code in xaml:
    <telerik:RadChart x:Name="RadChart1">
        <telerik:RadChart.DefaultSeriesDefinition>
            <telerikCharting:PieSeriesDefinition RadiusFactor="0.5">
                <telerikCharting:PieSeriesDefinition.LabelSettings>
                    <telerikCharting:RadialLabelSettings ShowConnectors="True" SpiderModeEnabled="True"/>
                </telerikCharting:PieSeriesDefinition.LabelSettings>
            </telerikCharting:PieSeriesDefinition>
        </telerik:RadChart.DefaultSeriesDefinition>
    </telerik:RadChart>


    Kind regards,
    Velin
    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.
  7. Saravanan Thiruchabai
    Saravanan Thiruchabai avatar
    11 posts
    Member since:
    Mar 2010

    Posted 27 Apr 2010 Link to this post

    Is it possible to do the same with 3D PieChart?
    I dont see a property RadiusFactor for Pie3dSeriesDefinition.

    Thanks
    Saran
  8. Velin
    Admin
    Velin avatar
    391 posts

    Posted 29 Apr 2010 Link to this post

    Hello Saravanan Thiruchabai,

    Unfortunately, this. functionality is only available for the two dimensional chart types.

    Sincerely yours,
    Velin
    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.
  9. Saravanan Thiruchabai
    Saravanan Thiruchabai avatar
    11 posts
    Member since:
    Mar 2010

    Posted 29 Apr 2010 Link to this post

    I tried using LabelOffSet, ChartArea.SmartLabelsEnabled = true,

    assetAllocationChart.DefaultSeriesDefinition.SeriesItemLabelStyle, nothing seems to be working with related to 3dPieChart Labels. Wont these work for 3d Pie Chart?

    Find the attached 3d Pie Chart. The labels are overlapping eachother. I tried setting the LabeOffSet it didn't work.
    I tried changing the background color of the label to be transparent and reducing the fontsize using assetAllocationChart.DefaultSeriesDefinition.SeriesItemLabelStyle. Nothing seems to work.

    Thanks
    Saran

  10. Velin
    Admin
    Velin avatar
    391 posts

    Posted 04 May 2010 Link to this post

    Hello Saravanan Thiruchabai,

    Unfortunately, this functionality is not available for the 3D Pie chart.

    Please, accept our apologies for this inconvenience.

    All the best,
    Velin
    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.
  11. Saravanan Thiruchabai
    Saravanan Thiruchabai avatar
    11 posts
    Member since:
    Mar 2010

    Posted 06 May 2010 Link to this post

    Hi Velin,

     

        Since the labels were overlapping I made the Labels hidden by setting ShowItemLabels = false and I tried the following code to show tooltips in 3D Pie chart. It didn't show any tooltip. Does this functionality work in 3D Pie chart?
    Pie3DSeriesDefinition assetPS = new Pie3DSeriesDefinition();

     

    assetPS.ShowItemToolTips =

    true;

     

    assetPS.ItemToolTipFormat =

    "#LegendLabel";

     

     

    Thanks
    Saran

  12. Velin
    Admin
    Velin avatar
    391 posts

    Posted 12 May 2010 Link to this post

    Hello Saravanan Thiruchabai,

    Tooltips are not supported in the 3D Silverlight charts either. If you need these features I would suggest you to stick with the 2D pie chart.

    Please, accept our apologies for this inconvenience.

    All the best,
    Velin
    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.
Back to Top
DevCraft banner