Add day name along side date

Thread is closed for posting
2 posts, 0 answers
  1. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 13 Dec 2010 Link to this post

    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:

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

    Many thanks for any help.
  2. Evgenia
    Evgenia avatar
    1437 posts

    Posted 16 Dec 2010 Link to this post

    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.

    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.
Back to Top