How to I format Date Time label as multi-line on a DateTimeContinuousAxis?

Thread is closed for posting
2 posts, 0 answers
  1. IDispose
    IDispose avatar
    14 posts
    Member since:
    Apr 2010

    Posted 15 Sep 2011 Link to this post

    The DateTimeContinuousAxis has a property LabelFormat which allows for Date and Time to be formatted. I want the date and time pieces to be displayed in 2 lines like so

    Sep 09
    11:34 A

    Tried using "MMM dd \n\n hh:mm t"

    Above does not work

    Any ideas?

  2. Georgi
    Georgi avatar
    296 posts

    Posted 19 Sep 2011 Link to this post

    Hi Ramesh,

    Thank you for contacting us.

    The XAML parser will ignore the standard "\n" escape character. You need to provide the literal code of the character:


    If you want more control over the text blocks used to visualize axis labels, you may specify custom DataTemplate using the LabelTemplate property of the axis.

    I hope this helps. Let me know if I can assist you in some other way.

    the Telerik team

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

Back to Top