RadChartView with TimeSpan values?

4 posts, 0 answers
  1. Jeremiah
    Jeremiah avatar
    5 posts
    Member since:
    Oct 2012

    Posted 04 Apr 2012 Link to this post

    I currently have a RadChartView control that is bound to some objects whose name is on the X-Axis (Horizontal) and total-time as a TimeSpan on the Y-Axis (Vertical).  I would like the vertical axis to show labels such as 00:16:29.6 for sixteen minutes, twenty-nine and six-tenths seconds.  I also want the vertical axis to automatically scale as it does with numerical values.

    I have tried using the DateTimeContinuousAxis as the vertical axis which was bound to a DateTime with the hour, minutes, seconds, and milliseconds populated but the chart rendered the objects with a zero value.  I have also tried just binding a CategoricalAxis to the TimeSpan property but that again renders all of the items with a zero value.

    Does anybody know how to do this by overriding some classes or if there's any plans to include native TimeSpan representations in the RadChartView?
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 09 Apr 2012 Link to this post

    Hello Jeremiah,

    RadChart does not support plotting values against horizontal / vertical axes that are both DateTime-based -- at least one of the axes should be linear / logarithmic in order to achieve correct visualization.

    Currently we do not have any concrete plans about the implementation of such feature -- could you elaborate a bit more on the use case that will benefit from it so we can forward it to our developers for future consideration? Also, depending on the specific scenario there might be other controls like RadScheduleView or RadGanttView that are better suited for it.


    Regards,
    Giuseppe
    the Telerik team

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

  3. UI for WPF is Visual Studio 2017 Ready
  4. Wouter
    Wouter avatar
    24 posts
    Member since:
    Jul 2013

    Posted 30 Jul 2013 Link to this post

    Has there been any more thought on supporting TimeSpan axis in the RadChartView?

    We are a medical company and this would help visualize measurements. I guess this would also be a benefit for a lot of scientific applications.
  5. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 02 Aug 2013 Link to this post

    Hi Wouter,

    Even though RadChartView does not support visualizing TimeSpan values out-of-the-box, you can easily implement  this scenario by binding the series to the TimeSpan.Ticks property and defining label template with converter that converts the ticks back to TimeSpan.

    I have attached a sample project for reference.
     
    Regards,
    Petar Kirov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top