BinTransform Class

Groups the x values of the rows into bins and counts them: a histogram when used with a RectMark<T>. Each bin becomes a row with X1 and X2 its edges, Y1 zero and Y2 its count. The rows are binned separately for each value of the Fill channel.

public sealed class BinTransform : Transform

Remarks

The edges are round numbers, chosen with the tick algorithm for the number of bins, and the domain is extended to round values. A bin includes its lower edge; the last bin also includes its upper edge.

Inheritance
Transform BinTransform

Constructors

NameDescription
BinTransform()

BinTransform()

public BinTransform()

No documentation is available.

Properties

NameDescription
CountGets or sets the approximate number of bins, or null to use BinTransform.Thresholds.
EdgesGets or sets the edges of the bins, in increasing order, or null to compute them. Values outside of them are not counted.
ThresholdsGets or sets the rule that chooses the number of bins. The default is BinThresholds.Sturges.

Gets or sets the approximate number of bins, or null to use BinTransform.Thresholds.

public int? Count { get; set; }

Property value

int?

Gets or sets the edges of the bins, in increasing order, or null to compute them. Values outside of them are not counted.

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

Thresholds

BinTransform.cs

Gets or sets the rule that chooses the number of bins. The default is BinThresholds.Sturges.

public BinThresholds Thresholds { get; set; }

Property value

BinThresholds