initialState.annotations[type=' text']
- type required
'text' - Configuration for the text annotation.
- text required
string - The text content.
- x required
AgAnnotationValue - The x-value of the point.
- y required
number | AgStateSerializableBigInt - The y-value of the point. A number, or a serialised value object.
- handle
AgAnnotationHandleStyles - Configuration for the drag handles.
- color
AgCssColorOrRef - The colour for text elements. A colour string, or a theme-colour reference object.
- fontSize
FontSize - The size of the font in pixels for text elements.
- fontFamily
FontFamily - The font family for text elements.
- fontStyle
FontStyle - The style to use for text elements.
- fontWeight
FontWeight - The font weight to use for text elements.
- locked
booleandefault: false - Whether the annotation should be locked to prevent editing.
- readOnly
booleandefault: false - Whether the annotation should be read-only to prevent selection, editing and deletion.
- visible
boolean - Whether the element should be visible.
initialState.annotations[type=' text']
- type required
'text' - Configuration for the text annotation.
- text required
string - The text content.
- x required
AgAnnotationValue - The x-value of the point.
- y required
number | AgStateSerializableBigInt - The y-value of the point. A number, or a serialised value object.
- handle
AgAnnotationHandleStyles - Configuration for the drag handles.
- color
AgCssColorOrRef - The colour for text elements. A colour string, or a theme-colour reference object.
- fontSize
FontSize - The size of the font in pixels for text elements.
- fontFamily
FontFamily - The font family for text elements.
- fontStyle
FontStyle - The style to use for text elements.
- fontWeight
FontWeight - The font weight to use for text elements.
- locked
booleandefault: false - Whether the annotation should be locked to prevent editing.
- readOnly
booleandefault: false - Whether the annotation should be read-only to prevent selection, editing and deletion.
- visible
boolean - Whether the element should be visible.