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

RadChart XAxis display as Date *and* Time

1 Answer 189 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cory
Top achievements
Rank 1
Cory asked on 29 Jul 2011, 01:47 PM
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.

Cheers!

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 03 Aug 2011, 04:31 PM
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,
Polina
the Telerik team

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

Tags
Chart (obsolete as of Q1 2013)
Asked by
Cory
Top achievements
Rank 1
Answers by
Missing User
Share this question
or