PieChart's Label

3 posts, 1 answers
  1. Jara
    Jara avatar
    29 posts
    Member since:
    Jul 2010

    Posted 07 Oct 2011 Link to this post

    Hi,
    How can I create combined Pie chart labesl (join YValue and Label);
    for example
    Product 1 : 56
    Product 2 : 87
    Like in this example http://demos.telerik.com/silverlight/#Chart/SmartLabels
    6% HTC
    13% Apple

    Thanks,
    Jara
  2. Answer
    Sia
    Admin
    Sia avatar
    745 posts

    Posted 11 Oct 2011 Link to this post

    Hi Jara,

    You need to use the exposed ItemLabelFormat property as shown below [this format is used in the mentioned example]:
    SeriesMapping mapping = new SeriesMapping();
    mapping.SeriesDefinition.ItemLabelFormat = "#Y% #XCAT";

    More information about format expressions can be found in our help.
    For your scenario a possible solution is:
    mapping.SeriesDefinition.ItemLabelFormat = "#SERIESLABEL #Y";

    Best wishes,
    Sia
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Jara
    Jara avatar
    29 posts
    Member since:
    Jul 2010

    Posted 12 Oct 2011 Link to this post

    Thanks
Back to Top