LineMark<T> Class

Draws a line through the rows, one line per series (the LineMark<T>.Series channel, else the Mark<T>.Stroke channel). A missing value breaks the line. In polar coordinates with LineMark<T>.Closed, it draws the outline of a radar chart.

public sealed class LineMark<T> : Mark<T>

Type parameters

T
The type of the rows.
Inheritance
Mark<T> LineMark<T>

Constructors

NameDescription
LineMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>)Initializes a new instance of the LineMark<T> class.

LineMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>)

LineMark.cs

Initializes a new instance of the LineMark<T> class.

public LineMark(IEnumerable<T> data, Func<T, object?> x, Func<T, object?> y)

Parameters

data IEnumerable<T>
The rows, in the order of the line.
x Func<T, object?>
The channel of the x position.
y Func<T, object?>
The channel of the y position.

Properties

NameDescription
ClosedGets or sets a value that indicates whether the last point of each line joins its first point.
CurveGets or sets how the points are joined. The default is Curve.Linear.
MarkerRadiusGets or sets the radius of a dot drawn at each point, or 0 for none. The default is 0.
SeriesGets or sets the channel of the series, when it differs from Mark<T>.Stroke.
StrokeDashArrayGets or sets the lengths of the dashes and gaps, or null for a solid line.
XGets the channel of the x position.
YGets the channel of the y position.

Gets or sets a value that indicates whether the last point of each line joins its first point.

public bool Closed { get; set; }

Property value

bool

Gets or sets how the points are joined. The default is Curve.Linear.

public Curve Curve { get; set; }

Property value

Curve

MarkerRadius

LineMark.cs

Gets or sets the radius of a dot drawn at each point, or 0 for none. The default is 0.

public double MarkerRadius { get; set; }

Property value

double

Gets or sets the channel of the series, when it differs from Mark<T>.Stroke.

public Func<T, object?>? Series { get; set; }

Property value

Func<T, object?>?

StrokeDashArray

LineMark.cs

Gets or sets the lengths of the dashes and gaps, or null for a solid line.

public IReadOnlyList<double>? StrokeDashArray { get; set; }

Gets the channel of the x position.

public Func<T, object?> X { get; }

Property value

Func<T, object?>

Gets the channel of the y position.

public Func<T, object?> Y { get; }

Property value

Func<T, object?>