Mark<T> Class
A mark that draws a sequence of rows of type T, one shape (or one point of a line) per row.
public abstract class Mark<T> : MarkType parameters
T- The type of the rows.
Remarks
A channel is a function of a row. It returns a number (any numeric type), a time (DateTime, DateTimeOffset, DateOnly) or a category (strings and anything else, formatted with the invariant culture). null and Double.NaN are missing values: the row is not drawn, and lines break around it.
- Inheritance
MarkMark<T>
Properties
| Name | Description |
|---|---|
| Data | Gets the rows of the mark. |
| DataAttributes | Gets or sets the channel of the data-* attributes of the shape of each row in the SVG output, or null for none. The names are without the data- prefix: lowercase ASCII letters, digits, hyphens, underscores and dots. The values are formatted with the invariant culture: numbers round-trip, times use ISO 8601, and null skips the attribute. Scripts of a web page read them with element.dataset. The shapes that draw several rows (the line of a series, a box plot...) get the attributes of their first row, and the shapes that count rows (the bars of a histogram) get none. |
| FacetX | Gets or sets the channel of the column of the facet grid of each row, or null. With facets, the plot is a grid of small charts (small multiples) that share the scales; each row is drawn in the chart of its facet. A mark without facet channels is drawn in every chart, such as a reference line. |
| FacetY | Gets or sets the channel of the row of the facet grid of each row, or null. See Mark<T>.FacetX. |
| Fill | Gets or sets the channel of the fill color, mapped by the color scale, or null to use Mark<T>.FillColor. |
| FillColor | Gets or sets the fill color when Mark<T>.Fill is not set, or null for the first color of the theme. |
| Stroke | Gets or sets the channel of the stroke color, mapped by the color scale, or null to use Mark<T>.StrokeColor. |
| StrokeColor | Gets or sets the stroke color when Mark<T>.Stroke is not set, or null for the default of the mark. |
| StrokeWidth | Gets or sets the stroke width, or null for the default of the mark. |
| Title | Gets or sets the channel of the tooltips (an SVG title per shape), or null for none. |
| Transform | Gets or sets the transform applied to the rows before they are drawn (stack, bin, group...), or null for none. |
Data
Mark`1.csDataAttributes
Mark`1.csGets or sets the channel of the data-* attributes of the shape of each row in the SVG output, or null for none. The names are without the data- prefix: lowercase ASCII letters, digits, hyphens, underscores and dots. The values are formatted with the invariant culture: numbers round-trip, times use ISO 8601, and null skips the attribute. Scripts of a web page read them with element.dataset. The shapes that draw several rows (the line of a series, a box plot...) get the attributes of their first row, and the shapes that count rows (the bars of a histogram) get none.
public Func<T, IEnumerable<KeyValuePair<string, object?>>?>? DataAttributes { get; set; }Property value
FacetX
Mark`1.csGets or sets the channel of the column of the facet grid of each row, or null. With facets, the plot is a grid of small charts (small multiples) that share the scales; each row is drawn in the chart of its facet. A mark without facet channels is drawn in every chart, such as a reference line.
Property value
FacetY
Mark`1.csGets or sets the channel of the row of the facet grid of each row, or null. See Mark<T>.FacetX.
Property value
Fill
Mark`1.csGets or sets the channel of the fill color, mapped by the color scale, or null to use Mark<T>.FillColor.
Property value
FillColor
Mark`1.csGets or sets the fill color when Mark<T>.Fill is not set, or null for the first color of the theme.
public ChartColor? FillColor { get; set; }Property value
Stroke
Mark`1.csGets or sets the channel of the stroke color, mapped by the color scale, or null to use Mark<T>.StrokeColor.
Property value
StrokeColor
Mark`1.csGets or sets the stroke color when Mark<T>.Stroke is not set, or null for the default of the mark.
public ChartColor? StrokeColor { get; set; }Property value
StrokeWidth
Mark`1.csTitle
Mark`1.csGets or sets the channel of the tooltips (an SVG title per shape), or null for none.
Property value
Transform
Mark`1.csGets or sets the transform applied to the rows before they are drawn (stack, bin, group...), or null for none.
public Transform? Transform { get; set; }