AreaMark<T> Class
Fills the area between a line through the rows and a baseline, one area per series (the AreaMark<T>.Series channel, else Mark<T>.Fill). The baseline is AreaMark<T>.Y1, else zero. With a StackTransform, the areas are stacked; with StackOffset.Silhouette, they make a streamgraph.
public sealed class AreaMark<T> : Mark<T>Type parameters
T- The type of the rows.
- Inheritance
Mark<T>AreaMark<T>
Constructors
| Name | Description |
|---|---|
| AreaMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>) | Initializes a new instance of the AreaMark<T> class. |
AreaMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>)
AreaMark.csInitializes a new instance of the AreaMark<T> class.
public AreaMark(IEnumerable<T> data, Func<T, object?> x, Func<T, object?> y)Parameters
dataIEnumerable<T>- The rows, in the order of the line.
xFunc<T, object?>- The channel of the x position.
yFunc<T, object?>- The channel of the y position of the top of the area.
Properties
| Name | Description |
|---|---|
| Closed | Gets or sets a value that indicates whether the area is a closed polygon, for radar charts in polar coordinates. |
| Curve | Gets or sets how the points are joined. The default is Curve.Linear. |
| FillOpacity | Gets or sets the opacity of the fill, from 0 to 1. The default is 1. |
| Series | Gets or sets the channel of the series, when it differs from Mark<T>.Fill. |
| X | Gets the channel of the x position. |
| Y | Gets the channel of the y position of the top of the area. |
| Y1 | Gets or sets the channel of the baseline, or null for zero. |
Closed
AreaMark.csCurve
AreaMark.csGets or sets how the points are joined. The default is Curve.Linear.
public Curve Curve { get; set; }Property value
FillOpacity
AreaMark.csSeries
AreaMark.csGets or sets the channel of the series, when it differs from Mark<T>.Fill.
Property value
Gets the channel of the y position of the top of the area.
Property value
Gets or sets the channel of the baseline, or null for zero.