Custom YAxis label formatting as time

Thread is closed for posting
2 posts, 0 answers
  1. Wendelstam
    Wendelstam avatar
    48 posts
    Member since:
    Feb 2006

    Posted 26 May 2009 Link to this post


    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.

  2. Ves
    Ves avatar
    2926 posts

    Posted 28 May 2009 Link to this post

    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.

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