Line series fails to handle nulls and NaN

8 posts, 0 answers
  1. MikeWiese
    MikeWiese avatar
    41 posts
    Member since:
    Apr 2007

    Posted 25 Oct 2011 Link to this post

    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
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 28 Oct 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Timo
    Timo avatar
    7 posts
    Member since:
    Oct 2010

    Posted 09 Mar 2012 Link to this post

    Hello,

    Can you tell me if null values are now handled by ChartView? Thanks.
  5. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 09 Mar 2012 Link to this post

    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 >>
  6. Max
    Max avatar
    1 posts
    Member since:
    Jan 2013

    Posted 01 May 2013 Link to this post

    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

  7. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 06 May 2013 Link to this post

    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.

  8. Lian
    Lian avatar
    12 posts
    Member since:
    Jan 2015

    Posted 21 Jan 2015 in reply to Peshito Link to this post

    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.
  9. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 22 Jan 2015 Link to this post

    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.

     
Back to Top
DevCraft banner