Broken line chart

Oystein Bjorke 6 years ago 0
This discussion was imported from CodePlex

tongbong wrote at 2012-09-22 18:30:

Hi there,

first of all I am very glad to know about OxyPlot. It seams promising.

However, I do not see any example about broken line chart as in Visifire (see

Is there any plan to support that feature?

Cheers, Francois

objo wrote at 2012-09-24 10:37:

Currently, invalid data points (null / NaN) creates an "invisible" broken line (no dashed line is shown). I agree there could be an option to draw a dashed line. Vote on

tongbong wrote at 2012-10-01 18:28:

For those who wonders how to code the invisible broken line, here is an example:

LineSeries series = new LineSeries("MySerie");
series.Points.Add(new DataPoint(5, 10));
series.Points.Add(new DataPoint(10, 10));
series.Points.Add(new DataPoint(Double.NaN, Double.NaN));
series.Points.Add(new DataPoint(20, 10));
series.Points.Add(new DataPoint(30, 10));