Default label format

2 posts, 0 answers
  1. Meenakshi
    Meenakshi avatar
    8 posts
    Member since:
    Dec 2010

    Posted 03 Jan 2011 Link to this post

    Hello,

    I have defined range and default label format for Radchart as following in my xaml.cs file:

    RadChart1.DefaultView.ChartArea.AdditionalYAxes[0].AddRange(70, 100, 5);

    RadChart1.DefaultView.ChartArea.AdditionalYAxes[0].DefaultLabelFormat =

     

    "P0";

    Though my Linechart is getting dispalyed correctly, my axes labels are getting displayed as 7000%,7500%,8000% etc... I want my labels to be displayed as 70%,75%,80% etc.

    I referred the below link but it says percentage result will multiply by 100 so i am getting 7000 instead of 70.
    http://www.telerik.com/help/silverlight/radchart-features-format-expressions.html
    Please provide me the sample code if any for the same.

    Thanks for your Help,
    Meenakshi

     

  2. Evgeni "Zammy" Petrov
    Admin
    Evgeni "Zammy" Petrov avatar
    168 posts

    Posted 03 Jan 2011 Link to this post

    Hello Meenakshi,

     For the "P0" formatting to work your data must be between 0 and 1. So you need to divide by 100 the data mapped on Y.
    I hope this information gets you started properly.

    Greetings,
    Evgeni "Zammy" Petrov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top