Rad Item label not display inside pie chart section

Thread is closed for posting
4 posts, 0 answers
  1. vivek shukla
    vivek shukla avatar
    3 posts
    Member since:
    Dec 2009

    Posted 14 Dec 2009 Link to this post

    RcMyAccount.Series[0].SetItemLabel(0, string.Format("Active Projects\n {0}", currentPorject.Count));
    RcMyAccount.Series[0].SetItemLabel(1, string.Format("Available  Projects\n {0}", CurrentPlan.MaxProjects - ActiveProject));
    RcMyAccount.Series[0].Items[0].Label.Appearance.LabelLocation = StyleSeriesItemLabel.ItemLabelLocation.Inside;
     RcMyAccount.Series[0].Items[1].Label.Appearance.LabelLocation = StyleSeriesItemLabel.ItemLabelLocation.Inside;

    I m trying this code to show items label inside pie chart but it's not working.
    please find attached snapshot of Pie chart.

            

  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 15 Dec 2009 Link to this post

    Hi Vivek,

    You can further control the label position through the Distance property -- in this case you can use negative values to move the label towards the pie center:
    RcMyAccount.Series[0].Items[0].Label.Appearance.Distance = -20;

    Best regards,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Goraksh
    Goraksh avatar
    8 posts
    Member since:
    Jul 2013

    Posted 21 Aug 2013 Link to this post

    Hello Ves,
    Can we do this same Item Labels positioning in RadHtmlchart?. If yes please tell me how do to that. I want to reduce the distance between my actual piechart and its item Labels.
  5. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 26 Aug 2013 Link to this post

    Hello Goraksh,

    I am sorry to say that currently RadHtmlChart doesn't expose any properties for controlling the labels position of Pie/Donut Series. Such a feature request, however, has already been logged in our feedback portal here, so that you can monitor, comment and vote on it.

    As more and more people vote on particular item its priority for implementation raises.

    Regards,
    Danail Vasilev
    Telerik
    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 the blog feed now.
Back to Top