SharpPlot Reference > SharpPlot Properties > MissingValue Property

SharpPlot.MissingValue Property

Tells SharpPlot to ignore specific values in data series.

public double MissingValue {get; set;}

Example

sp.MissingValue = 0;

The default setting is 32768. The effect of setting it to zero is to make line graphs skip over zero values, rather than drawing an annoying line down to the axis wherever zero is hit. When you plot an array of data with differing numbers of elements, SharpPlot automatically pads the shorter series with the current missing-value setting.

sp.MissingValue = -99;

This might be appropriate for data from some logging device, where negative numbers indicate various error conditions.

By default, line-graphs simply ‘bridge’ the missing points by joining the points on either side. Use the segmented lines style to have the line broken wherever data is missing.

See also ...

SharpPlot Members


Send comments on this topic
© Dyalog Ltd 2016