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

Hide/Shrink X scale for DateTime

1 Answer 75 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ifdev02
Top achievements
Rank 1
Ifdev02 asked on 02 Aug 2012, 03:54 AM
Hi
I have X axis as a DateTime currently it show data to scale with actual day hours.
E.g. i have data spread from 3 days mostly during working hours. The data will have big gaps from non working hours, and also holiday. How to hide/shrink axis so that the chart do not show period that have no data say from 8pm to 8am or holiday. The current is that it will show as straight line (areachart) - and so there are many big gaps.

Basic idea is not to show X axis to scale with day hours/min. The manual do not contains information about this and it is difficult to work on. 
Thanks,
 
PS. I read around there is something on discussion.
"RadChart currently does not support irregular intervals"
but I may not have the up to date license.
Are there some alternative?

So far I have not found good example for XCategory for my case, and then I still need to work with date time labels, that can show Day Month Hours Min intelligently. I hope i dont have to give up on this chart.

- I replaced XValue with XCategory and then I get x axis with irregular interval but now label all overlap. need some help here.

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 07 Aug 2012, 05:34 AM
Hello Joe,

In the old chart - the RadChart this can't be implemented. The DateTime axis can only behave in continuous mode.

However in Q1 2012 we have released our RadChartView control for Silverlight and WPF. This control is designed from the ground up to be much faster and cross-platform. It is quickly gaining new features and is designed to supersede RadChart.

With that said you can easily implement the functionality you are after using the DateTimeCategoricalAxis. You can check this article for more details.

Regards,
Petar Kirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
Ifdev02
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or