FunnelMark<T> Class

Draws a funnel: a centered bar per stage, from the top down, whose width is proportional to its value, joined to the next stage by a lighter trapezoid. Each bar shows its value, and the y axis shows the stages.

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

Type parameters

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

Constructors

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

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

FunnelMark.cs

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

public FunnelMark(IEnumerable<T> data, Func<T, object?> stage, Func<T, object?> value)

Parameters

data IEnumerable<T>
The rows: the stages, in order.
stage Func<T, object?>
The channel of the name of the stage.
value Func<T, object?>
The channel of the value of the stage.

Properties

NameDescription
LabelGets or sets the channel of the label of each bar, or null for its value.
StageGets the channel of the name of the stage.
ValueGets the channel of the value of the stage.

Gets or sets the channel of the label of each bar, or null for its value.

public Func<T, string?>? Label { get; set; }

Property value

Func<T, string?>?

Gets the channel of the name of the stage.

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

Property value

Func<T, object?>

Gets the channel of the value of the stage.

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

Property value

Func<T, object?>