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

RadChartView with TimeSpan values?

3 Answers 224 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jeremiah
Top achievements
Rank 2
Jeremiah asked on 04 Apr 2012, 05:26 PM
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?

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 09 Apr 2012, 01:17 PM
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 >>

0
Wouter
Top achievements
Rank 1
answered on 30 Jul 2013, 03:34 PM
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.
0
Petar Kirov
Telerik team
answered on 02 Aug 2013, 07:33 PM
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 >>
Tags
ChartView
Asked by
Jeremiah
Top achievements
Rank 2
Answers by
Giuseppe
Telerik team
Wouter
Top achievements
Rank 1
Petar Kirov
Telerik team
Share this question
or