AG Studio: Build dashboards using native components in web apps. Join us for a webinar on 28th July at 2pm UTC+1 Register

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 boolean default: false
Whether the annotation should be locked to prevent editing.
readOnly boolean default: false
Whether the annotation should be read-only to prevent selection, editing and deletion.
visible boolean
Whether the element should be visible.