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

Default label format

1 Answer 88 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Meenakshi
Top achievements
Rank 1
Meenakshi asked on 03 Jan 2011, 11:35 AM

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

 

1 Answer, 1 is accepted

Sort by
0
Evgeni "Zammy" Petrov
Telerik team
answered on 03 Jan 2011, 02:24 PM
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
Tags
Chart
Asked by
Meenakshi
Top achievements
Rank 1
Answers by
Evgeni "Zammy" Petrov
Telerik team
Share this question
or