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

Can I set the DateTimeComponent in code?

2 Answers 30 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shantimohan
Top achievements
Rank 1
Shantimohan asked on 13 May 2013, 11:14 PM
I have two types of data. For one it is TimeOfDay and for other it is Date. Both will not occur at the same time. How can I use single chart control to set the DateTimeComponent as desired?

2 Answers, 1 is accepted

Sort by
0
Accepted
Victor
Telerik team
answered on 16 May 2013, 02:22 PM
Hello Shantimohan,

You just have to set the DateTimeComponent property of your date time axis. For example if your chart has a DateTimeContinuousAxis as its horizontal axis you just get the value of the chart.HorizontalAxis property and cast it to DateTimeContinuousAxis. Then the date time axis has a DateTimeComponent property that you can tweak.

Regards,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Shantimohan
Top achievements
Rank 1
answered on 17 May 2013, 03:44 PM
Ah! how did I forget to cast?

Thanks, it worked.
Tags
Chart
Asked by
Shantimohan
Top achievements
Rank 1
Answers by
Victor
Telerik team
Shantimohan
Top achievements
Rank 1
Share this question
or