Hi,
I'm using RadChart to display the graphical notation.
How to avoid the decimal values in Y Axis label value.
Please find the Screenshot and Give me a solution.
Thanks in advance
I'm using RadChart to display the graphical notation.
How to avoid the decimal values in Y Axis label value.
Please find the Screenshot and Give me a solution.
Thanks in advance
6 Answers, 1 is accepted
0
Hello Nagarajan,
One possible option to handle this setup would be to format the values for the axis. Additional information on this is available in the following article:
http://www.telerik.com/help/aspnet-ajax/understandingelementsaxislabels.html
I hope this gets you started properly.
Regards,
Yavor
the Telerik team
One possible option to handle this setup would be to format the values for the axis. Additional information on this is available in the following article:
http://www.telerik.com/help/aspnet-ajax/understandingelementsaxislabels.html
I hope this gets you started properly.
Regards,
Yavor
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Naresh
Top achievements
Rank 2
answered on 10 Mar 2011, 06:52 AM
Thanks for reply.
i dont want to set max and min value for y axis.
The value of y axis should be dynamic.
i dont want to set max and min value for y axis.
The value of y axis should be dynamic.
0
Hello Nagarajan,
Basically, you can set the format string to one of the predefined values like this:
Regards,
Yavor
the Telerik team
Basically, you can set the format string to one of the predefined values like this:
protected void Page_Load(object sender, EventArgs e)
{
RadChart2.PlotArea.YAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.Currency;
}
RadChart2.PlotArea.YAxis.Appearance.TextAppearance.MaxLength = 2;
Yet another aproach would be to directly access the label value:RadChart2.PlotArea.YAxis.Items[3].TextBlock.Text
I hope one of these options help. Let me know if further questions arise.Regards,
Yavor
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Emanuele
Top achievements
Rank 2
answered on 03 Apr 2011, 06:13 PM
0
Arjun
Top achievements
Rank 1
answered on 24 May 2012, 11:38 AM
Hi Naresh,
Did u resolve this issue .i am also facing same one.
if u did plz help me ..
Thanks in Advance.
Did u resolve this issue .i am also facing same one.
if u did plz help me ..
Thanks in Advance.
0
Barry
Top achievements
Rank 1
answered on 12 Jul 2013, 01:27 PM
Emanuele Zambrano - You are a life-saver. Thanks for this tip!
I used: DChart.PlotArea.YAxis.Appearance.CustomFormat = "£#,##0";
Works perfectly. Many thanks!
Barry
I used: DChart.PlotArea.YAxis.Appearance.CustomFormat = "£#,##0";
Works perfectly. Many thanks!
Barry