SharpPlot Tutorials > Style Examples > Segmented lines at missing values

Segmented lines at missing values

Normally, lines are continued across missing values, joining the points on each side. This style forces the line to break either side of missing data. Applies to LineGraphs and StepCharts when these are not surface shaded.

sp.LineGraphStyle = LineGraphStyles.SegmentLines;

Note that no line will be drawn unless there are at least 2 points between any run of missing values.

See also ...

SharpPlot Members | SharpPlot.LineGraphStyle Property | SharpPlot.StepChartStyle Property

Send comments on this topic
© Dyalog Ltd 2020