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

Missing values with DateTimeContinuousAxis

1 Answer 124 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 10 Sep 2014, 01:09 PM
Any options for controlling chart behaviour with missing values and a DateTimeContinuousAxis? I need the empty parts of the chart to be absent rather than connected to the next available value...

Tia,

Jonathan

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 15 Sep 2014, 11:34 AM
Hi Jonathan,

I already answered this question in your support ticket, but I will quote my reply also here so that it can be visible in our community.

No, the chart does not expose a behavior that controls the way the empty points are displayed. By default if a data point has a value of Null it won't be plotted on the chart.

For example if you have a categorical data and you have a data point in category "1" with a value set to 10, another point in category "2" with value set to Null and third point in category "3" and value set to 20, the chart will drop the null point and won't draw a line between the first and the third points.

In order to achieve your requirement you can set Null value on the data points that you consider as missing. You can take a look at the Empty Values demo that demonstrates such approach. 


Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ChartView
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or