Reputation: 140
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:
How can I create a graph that contains a gap like this?
Upvotes: 3
Views: 1474
Reputation: 18153
One could also use
DataPoint.Undefined
For example,
series1.Points.Add(DataPoint.Undefined);
Upvotes: 2
Reputation: 140
I found the solution. By adding a Double.NaN value in the datapont, holes are created.
new DataPoint(15, Double.NaN)
Upvotes: 9