RuleYMark<T> Class
Draws a line at the y value of each row, across the plot area, across the band of the category RuleYMark<T>.X, or from RuleYMark<T>.X1 to RuleYMark<T>.X2: horizontal reference lines and thresholds, the targets of bullet charts, the bars of dumbbells. In polar coordinates, the lines are circles.
public class RuleYMark<T> : Mark<T>Type parameters
T- The type of the rows.
- Inheritance
Mark<T>RuleYMark<T>
Constructors
| Name | Description |
|---|---|
| RuleYMark(IEnumerable<T>, Func<T, object?>) | Initializes a new instance of the RuleYMark<T> class. |
RuleYMark(IEnumerable<T>, Func<T, object?>)
RuleYMark`1.csInitializes a new instance of the RuleYMark<T> class.
public RuleYMark(IEnumerable<T> data, Func<T, object?> y)Parameters
dataIEnumerable<T>- The rows.
yFunc<T, object?>- The channel of the y position.
Properties
| Name | Description |
|---|---|
| StrokeDashArray | Gets or sets the lengths of the dashes and gaps, or null for a solid line. |
| X | Gets or sets the channel of a category of the x axis: the line spans its band. It is ignored when RuleYMark<T>.X1 or RuleYMark<T>.X2 is set. |
| X1 | Gets or sets the channel of the start of the line, or null for the start of the x scale. |
| X2 | Gets or sets the channel of the end of the line, or null for the end of the x scale. |
| Y | Gets the channel of the y position. |
StrokeDashArray
RuleYMark`1.csGets or sets the lengths of the dashes and gaps, or null for a solid line.
public IReadOnlyList<double>? StrokeDashArray { get; set; }Property value
Gets or sets the channel of a category of the x axis: the line spans its band. It is ignored when RuleYMark<T>.X1 or RuleYMark<T>.X2 is set.
Property value
Gets or sets the channel of the start of the line, or null for the start of the x scale.
Property value
Gets or sets the channel of the end of the line, or null for the end of the x scale.