WaterfallMark<T> Class
Draws a waterfall chart: each bar goes from the running total before its row to the running total after it, in the positive color of the theme for an increase and in its negative color for a decrease. A total row (WaterfallMark<T>.IsTotal) goes from zero to the running total, in the neutral color. Dashed lines join the bars.
public sealed class WaterfallMark<T> : Mark<T>Type parameters
T- The type of the rows.
- Inheritance
Mark<T>WaterfallMark<T>
Constructors
| Name | Description |
|---|---|
| WaterfallMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>) | Initializes a new instance of the WaterfallMark<T> class. |
WaterfallMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>)
WaterfallMark.csInitializes a new instance of the WaterfallMark<T> class.
public WaterfallMark(IEnumerable<T> data, Func<T, object?> x, Func<T, object?> y)Parameters
dataIEnumerable<T>- The rows, in order.
xFunc<T, object?>- The channel of the category of the bar.
yFunc<T, object?>- The channel of the change. It is ignored for the total rows.
Properties
| Name | Description |
|---|---|
| IsTotal | Gets or sets the function that tells whether a row is a total, or null for none. |
| X | Gets the channel of the category of the bar. |
| Y | Gets the channel of the change. |
IsTotal
WaterfallMark.csGets or sets the function that tells whether a row is a total, or null for none.
Property value
Gets the channel of the category of the bar.