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

How to write quarters on X-Axis labels

1 Answer 22 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Domagoj
Top achievements
Rank 1
Domagoj asked on 18 Nov 2011, 07:58 AM
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)?

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 22 Nov 2011, 03:58 PM
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 >>
Tags
Chart
Asked by
Domagoj
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or