RuleXMark<T> Class

Draws a line at the x value of each row, across the plot area, across the band of the category RuleXMark<T>.Y, or from RuleXMark<T>.Y1 to RuleXMark<T>.Y2: vertical reference lines, the stems of lollipops, error bars. In polar coordinates, the lines go out from the center (the needle of a gauge).

public class RuleXMark<T> : Mark<T>

Type parameters

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

Constructors

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

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

RuleXMark`1.cs

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

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

Parameters

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

Properties

NameDescription
StrokeDashArrayGets or sets the lengths of the dashes and gaps, or null for a solid line.
XGets the channel of the x position.
YGets or sets the channel of a category of the y axis: the line spans its band. It is ignored when RuleXMark<T>.Y1 or RuleXMark<T>.Y2 is set.
Y1Gets or sets the channel of the start of the line, or null for the start of the y scale (the center, in polar coordinates).
Y2Gets or sets the channel of the end of the line, or null for the end of the y scale.

StrokeDashArray

RuleXMark`1.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 or sets the channel of a category of the y axis: the line spans its band. It is ignored when RuleXMark<T>.Y1 or RuleXMark<T>.Y2 is set.

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

Property value

Func<T, object?>?

Gets or sets the channel of the start of the line, or null for the start of the y scale (the center, in polar coordinates).

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

Property value

Func<T, object?>?

Gets or sets the channel of the end of the line, or null for the end of the y scale.

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

Property value

Func<T, object?>?