AnnotationMark<T> Class
Draws an annotation per row: a text placed at an offset from a point of the chart, and an arrow from the text to the point. The text is anchored on the side of the offset, so it stays clear of the point; a line break starts a new line.
public sealed class AnnotationMark<T> : Mark<T>Type parameters
T- The type of the rows.
- Inheritance
Mark<T>AnnotationMark<T>
Constructors
| Name | Description |
|---|---|
| AnnotationMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>, Func<T, string?>) | Initializes a new instance of the AnnotationMark<T> class. |
AnnotationMark(IEnumerable<T>, Func<T, object?>, Func<T, object?>, Func<T, string?>)
AnnotationMark.csInitializes a new instance of the AnnotationMark<T> class.
public AnnotationMark(IEnumerable<T> data, Func<T, object?> x, Func<T, object?> y, Func<T, string?> text)Parameters
dataIEnumerable<T>- The rows: the annotations.
xFunc<T, object?>- The channel of the x position of the point.
yFunc<T, object?>- The channel of the y position of the point.
textFunc<T, string?>- The channel of the text.
Properties
| Name | Description |
|---|---|
| Bend | Gets or sets the angle of the curve of the arrow, in degrees: 0 for a straight arrow, positive values bend it clockwise. The default is 0. |
| DX | Gets or sets the horizontal offset of the text from the point, in pixels. The default is 40. |
| DY | Gets or sets the vertical offset of the text from the point, in pixels: negative values are above it. The default is -30. |
| FontSize | Gets or sets the font size of the text, or null for the font size of the theme. |
| HeadSize | Gets or sets the size of the head of the arrow, in pixels, or 0 for a line without a head. The default is 6. |
| Text | Gets the channel of the text. |
| X | Gets the channel of the x position of the point. |
| Y | Gets the channel of the y position of the point. |
FontSize
AnnotationMark.csHeadSize
AnnotationMark.csGets the channel of the x position of the point.
Property value
Gets the channel of the y position of the point.