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

Add day name along side date

1 Answer 28 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Craig Mellon
Top achievements
Rank 1
Craig Mellon asked on 13 Dec 2010, 06:39 PM
On my XAxis in my chart I display the last 7 days using the "shortdate" property, I used \ modified the code from this demo to do this: http://demos.telerik.com/aspnet-ajax/chart/examples/functionality/numericalaxis/defaultvb.aspx

I simply want to have the day name appear above the date?

Many thanks for any help.

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 16 Dec 2010, 08:39 AM
Hi Craig,

To be able to format the Axis Labels you should apply the correct Standard Numeric Format String to CustomFormat property of the axis. Here is how to show the day of the week in front of the ShortDate representation:
RadChart1.PlotArea.XAxis.Appearance.CustomFormat = "dddd M/d/yyyy";

I hope this information helps.

Greetings,
Evgenia
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.
Tags
Chart (Obsolete)
Asked by
Craig Mellon
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or