RadChart XAxis display as Date *and* Time

Thread is closed for posting
2 posts, 0 answers
  1. Cory
    Cory avatar
    1 posts
    Member since:
    Jul 2011

    Posted 29 Jul 2011 Link to this post

    Hello all,

    Is there a way that I display Date AND Tim on xasis? 

    ChartValueFormat enum has ShortTime and ShortDate, but NO ShortDateTime. 

    Appreciate your helps.

  2. Missing user
    Missing user avatar

    Posted 03 Aug 2011 Link to this post

    Hello Cory,

    You can set a custom DateTime format string using XAxis.Appearance.CustomFormat and XAxis.Appearance.ValueFormat properties. For example:
    radChart.PlotArea.XAxis.Appearance.ValueFormat = ChartValueFormat.LongDate;
    radChart.PlotArea.XAxis.Appearance.CustomFormat = "dd/MM/yyyy hh:mm:ss";

    I hope this helps.

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top