Add gap in OxyPlot line series

I am using OxyPlot in a Xamarin forms application. In a line series there can be missing data and I need to have a gap in the line to indicate the missing data.

Here's an example of what I would like to achieve:

Plot created with flot in javascript. Show "hole" in values

How can I create a graph that contains a gap like this?

Upvotes: 3

Views: 1474

Answers (2)

Anu Viswan
Anu Viswan

Reputation: 18153

One could also use

DataPoint.Undefined

For example,

 series1.Points.Add(DataPoint.Undefined);

Upvotes: 2

I found the solution. By adding a Double.NaN value in the datapont, holes are created.

new DataPoint(15, Double.NaN)

Upvotes: 9

Related Questions