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
| Name | Description |
|---|---|
| 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.csInitializes a new instance of the LineMark<T> class.
public LineMark(IEnumerable<T> data, Func<T, object?> x, Func<T, object?> y)Parameters
dataIEnumerable<T>- The rows, in the order of the line.
xFunc<T, object?>- The channel of the x position.
yFunc<T, object?>- The channel of the y position.
Properties
| Name | Description |
|---|---|
| Closed | Gets or sets a value that indicates whether the last point of each line joins its first point. |
| Curve | Gets or sets how the points are joined. The default is Curve.Linear. |
| MarkerRadius | Gets or sets the radius of a dot drawn at each point, or 0 for none. The default is 0. |
| Series | Gets or sets the channel of the series, when it differs from Mark<T>.Stroke. |
| StrokeDashArray | Gets or sets the lengths of the dashes and gaps, or null for a solid line. |
| X | Gets the channel of the x position. |
| Y | Gets the channel of the y position. |
Closed
LineMark.csCurve
LineMark.csGets or sets how the points are joined. The default is Curve.Linear.
public Curve Curve { get; set; }Property value
MarkerRadius
LineMark.csSeries
LineMark.csGets or sets the channel of the series, when it differs from Mark<T>.Stroke.
Property value
StrokeDashArray
LineMark.csGets or sets the lengths of the dashes and gaps, or null for a solid line.
public IReadOnlyList<double>? StrokeDashArray { get; set; }