BoxMark<T> Class

Draws a box plot per category of x: a box from the first to the third quartile, a line at the median, whiskers to the most extreme values within 1.5 times the interquartile range, and the outliers as dots (see BoxStatistics).

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

Type parameters

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

Constructors

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

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

BoxMark.cs

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

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

Parameters

data IEnumerable<T>
The rows: the values of all the categories.
x Func<T, object?>
The channel of the category.
y Func<T, object?>
The channel of the value.

Properties

NameDescription
BoxWidthGets or sets the width of the box, as a fraction of the band. The default is 0.6.
XGets the channel of the category.
YGets the channel of the value.

BoxWidth

BoxMark.cs

Gets or sets the width of the box, as a fraction of the band. The default is 0.6.

public double BoxWidth { get; set; }

Property value

double

Gets the channel of the category.

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

Property value

Func<T, object?>

Gets the channel of the value.

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

Property value

Func<T, object?>