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

Line series fails to handle nulls and NaN

7 Answers 283 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
MikeWiese
Top achievements
Rank 1
MikeWiese asked on 26 Oct 2011, 03:47 AM
Some feedback on the beta: The RadCartesianChart doesn't seem to handle null values or double.NaN correctly. In the 2011.3.1020.1040 beta it seems to draw a line up to a point in the top-left corner (see screen shot). Instead we need something like the EmptyPointBehavior of a RadChart series (extending it to support NaN as well as nulls), whereby we can specify whether we want a gap, a zero, or simply ignore the point.

These null and NaN values happen a lot when plotting industrial data versus time. For example, nulls occur due to instrument failure. And double.NaN occurs when a string is returned (e.g. "shutdown" or "calibration error") in the data stream, instead of a numeric value. If you can put yourself in the position of an engineer wanting to perform an analysis of an instrument failure or unexpected shutdown, these are some of the most important values of all, and must be handled well.

Mike Wiese

7 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 28 Oct 2011, 04:58 PM
Hi Mikewiese,

Thank you for your feedback and the described scenario.

Indeed you are correct -- the currently released version of the new ChartingKit does not support visualization of empty values. We have discussed this with our devteam and it seems we will not be able to ship empty values support with the Q3 2011 release but most probably with one of the early BETAs for the Q1 2012 release (ChartingKit will keep its BETA tag throughout the whole next Q and will become official for Q1 next year).


Best wishes,
Giuseppe
the Telerik team

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

0
Timo
Top achievements
Rank 1
answered on 09 Mar 2012, 02:07 PM
Hello,

Can you tell me if null values are now handled by ChartView? Thanks.
0
Giuseppe
Telerik team
answered on 09 Mar 2012, 02:15 PM
Hello Timo,

Unfortunately RadChartView still does not provide empty values support but this feature is one of the items with highest priority in our product backlog and is planned for the Q2 2012 release (around mid-June).


Greetings,
Giuseppe
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Max
Top achievements
Rank 1
answered on 01 May 2013, 08:07 PM
Hi,

Is EmptyPointBehavior functionality supported in ChartView now? We need to drop data points with null values and still cannot find a way to do this with the ChartView. 

Thanks,
-Max

0
Peshito
Telerik team
answered on 06 May 2013, 07:56 AM
Hi Max,

In order to have Empty Values working, you need to bind to a value which is null. When you are having a zero as a value, it will be displayed as a zero. But when the value is null, it will not be displayed on the graph. What you need to do is make your property nullable and whenever you want to have a "gap", set it to null.

You can also take a look at our online demo example here:
http://demos.telerik.com/silverlight/#ChartView/EmptyValues

Kind regards,
Peshito
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Lian
Top achievements
Rank 2
answered on 22 Jan 2015, 12:44 AM
Hi,

I found Telerik UI for WPF 2014 Q3 the RadCartesianChart does show null values in Gap mode by default.

But this problem is how to set the EmptyPointBehavior to Drop mode instead of the default one as described below:
http://docs.telerik.com/devtools/wpf/controls/radchart/features/empty-values.html

There are many examples demonstrated how to deal with RadChart but not RadCartesianChart. Could you please tell me if it's possible? Many thanks.
0
Peshito
Telerik team
answered on 22 Jan 2015, 12:28 PM
Hi,

The RadChartView control does not expose a behavior that controls the way the empty points are displayed. In order to skip your empty points you can create collection of points without those empty values and pass it to the chart.

Regards,
Peshito
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ChartView
Asked by
MikeWiese
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Timo
Top achievements
Rank 1
Max
Top achievements
Rank 1
Peshito
Telerik team
Lian
Top achievements
Rank 2
Share this question
or