How to write quarters on X-Axis labels

2 posts, 0 answers
  1. Domagoj
    Domagoj avatar
    17 posts
    Member since:
    Jun 2011

    Posted 18 Nov 2011 Link to this post

    I am using the RadChart control that displays some time-based data on a chart. Timestamp is the X-axis dimension.

    The control lets me set the label format for that axis, and that's the same format used by DateTime.ToString() method. For example:

    "yyyy-mm-dd" would produce dates like 2011-11-18.

    However, I'd like to categorize the data by the Quarters (I,II,III,IV). There is no such format specifier nor does the DateTime deals with Quarters. Is there any way to define the quarter (via format specifiers), or delegate the process of writing the label to a custom function (via some RadChart's binding)?
  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 22 Nov 2011 Link to this post

    Hi Domagoj,

    Take a look at this forum thread where you will find a similar discussion as well as sample project attached demonstrating the given approach in action.

    Best wishes,
    Evgenia
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top