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

Control how data points are connected

2 Answers 48 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 27 Oct 2008, 04:19 PM
Hi,


I have a scenario where we need to graph production data for a client. The chart/graph itself is pretty straightforward but the problem is there are sometimes gaps in the data (due to, say, a natural disaster halting production) so that there could be no data at all for 3 weeks, for example.

What we want to do it to be able to show a 'gap' in the chart to represent these periods of time when there is no data.

Is there a way to plot a chart  where we can control how the data points are connected? In other words, what I'm looking for is to be able to do something like:  "if two data points are more than a day apart, don't connect them"

Couldn't find any examples of this, any help at all would be appreciated. Thanks.

Richard

2 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 29 Oct 2008, 07:28 AM
Hi Richard,

One possible approach is to add a separate series for each set of data that should be displayed connected (I guess you need a line chart). You will need to manually adjust the appearance, so that all series are drawn using the same style/color.

Another solution is to take advantage of our Empty Values. In this case, you will need to provide an additional item with Empty property set to true. Then you can set the series.Appearance.EmptyValue.Line.Color to transparent.

Sincerely,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Richard
Top achievements
Rank 1
answered on 29 Oct 2008, 03:05 PM
Thanks!

I actually did implement the "seperate series" solution already but will explore the "Empty Values." as well and see what works better for us. Thanks for your help.
Tags
Chart (Obsolete)
Asked by
Richard
Top achievements
Rank 1
Answers by
Ves
Telerik team
Richard
Top achievements
Rank 1
Share this question
or