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

Custom YAxis label formatting as time

1 Answer 57 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Wendelstam
Top achievements
Rank 1
Wendelstam asked on 26 May 2009, 01:52 PM
Hi.

I have an underlying datasource that displays the data as seconds and I would like to format the charts Y-Axis labels ex: mm:ss or hh:mm:ss is there any easy way to do this with something like the customformat property. I know that you support all .net format strings but havent figured out the best way to accomplice this yet.

I cant really change how the chart is populated only how it displays its data since it is an production application.

Thanks in advance.

/Johan

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 28 May 2009, 08:34 AM
Hi Johan,

I am afraid there is no intrinsic support for this. Still, you can wire BeforeLayout event of RadChart. At that moment of the control lifecycle, the axis items are already created, so you can loop through them and update the text shown.

Hope this helps.

Greetings,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart (Obsolete)
Asked by
Wendelstam
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or