Hide/Shrink X scale for DateTime

2 posts, 0 answers
  1. Ifdev02
    Ifdev02 avatar
    68 posts
    Member since:
    Jul 2007

    Posted 01 Aug 2012 Link to this post

    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.
  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 07 Aug 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top