TickMark<T> Class

Draws a short line at the x value of each row, across the band of its y category (or across the plot area): a strip plot or a barcode plot.

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

Type parameters

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

Constructors

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

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

TickMark.cs

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

public TickMark(IEnumerable<T> data, Func<T, object?> x, Func<T, object?>? y = null)

Parameters

data IEnumerable<T>
The rows.
x Func<T, object?>
The channel of the x position.
y Func<T, object?>?
The channel of the category on the y axis, or null to span the plot area.

Properties

NameDescription
XGets the channel of the x position.
YGets the channel of the category on the y axis.

Gets the channel of the x position.

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

Property value

Func<T, object?>

Gets the channel of the category on the y axis.

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

Property value

Func<T, object?>?