RectMark<T> Class
Draws a rectangle per row. On each axis, the rectangle covers the band of a category (RectMark<T>.X, RectMark<T>.Y), the interval between two values (RectMark<T>.X1 and RectMark<T>.X2, RectMark<T>.Y1 and RectMark<T>.Y2), or the whole plot area when no channel is set. Two band axes and a numeric fill make a heatmap; a BinTransform on x makes a histogram.
public sealed class RectMark<T> : Mark<T>Type parameters
T- The type of the rows.
- Inheritance
Mark<T>RectMark<T>
Constructors
| Name | Description |
|---|---|
| RectMark(IEnumerable<T>) | Initializes a new instance of the RectMark<T> class. |
RectMark(IEnumerable<T>)
RectMark.csInitializes a new instance of the RectMark<T> class.
public RectMark(IEnumerable<T> data)Parameters
dataIEnumerable<T>- The rows.
Properties
| Name | Description |
|---|---|
| CornerRadius | Gets or sets the radius of the corners. The default is 0. |
| Inset | Gets or sets the space between adjacent rectangles, in pixels. The default is 1. |
| Text | Gets or sets the channel of a label drawn in the middle of the rectangle when it fits. |
| X | Gets or sets the channel of the category on the x axis (a band), or of the values to bin. |
| X1 | Gets or sets the channel of the start of the rectangle on the x axis. |
| X2 | Gets or sets the channel of the end of the rectangle on the x axis. |
| Y | Gets or sets the channel of the category on the y axis (a band). |
| Y1 | Gets or sets the channel of the start of the rectangle on the y axis. |
| Y2 | Gets or sets the channel of the end of the rectangle on the y axis. Without RectMark<T>.Y1, the rectangle starts at the baseline. |
CornerRadius
RectMark.csInset
RectMark.csText
RectMark.csGets or sets the channel of a label drawn in the middle of the rectangle when it fits.
Property value
Gets or sets the channel of the category on the x axis (a band), or of the values to bin.
Property value
Gets or sets the channel of the start of the rectangle on the x axis.
Property value
Gets or sets the channel of the end of the rectangle on the x axis.
Property value
Gets or sets the channel of the category on the y axis (a band).
Property value
Gets or sets the channel of the start of the rectangle on the y axis.
Property value
Gets or sets the channel of the end of the rectangle on the y axis. Without RectMark<T>.Y1, the rectangle starts at the baseline.