initialState.annotations[type=' horizontal-line']
- type required
'horizontal-line' - Configuration for the horizontal-line annotation.
- value required
AgAnnotationValue - Position of the annotation specified in terms of the axis values.
- text
AgLineAnnotationText - Configuration for the line text.
- axisLabel
AgAnnotationAxisLabel - Configuration for the annotation axis label.
- handle
AgAnnotationHandle - Configuration for the drag handle.
- 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.
- stroke
AgCssColorOrRef - The colour for the stroke.
- strokeWidth
PixelSize - The width of the stroke in pixels.
- strokeOpacity
Opacity - The opacity of the stroke colour.
- lineStyle
AgAnnotationLineStyleType - Defines how the line stroke is rendered. If `lineDash` is configured, this takes priority over the `lineStyle` property.
- lineDash
PixelSize[] - An array specifying the length in pixels of alternating dashes and gaps.
- lineDashOffset
PixelSize - The initial offset of the dashed line in pixels.
initialState.annotations[type=' horizontal-line']
- type required
'horizontal-line' - Configuration for the horizontal-line annotation.
- value required
AgAnnotationValue - Position of the annotation specified in terms of the axis values.
- text
AgLineAnnotationText - Configuration for the line text.
- axisLabel
AgAnnotationAxisLabel - Configuration for the annotation axis label.
- handle
AgAnnotationHandle - Configuration for the drag handle.
- 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.
- stroke
AgCssColorOrRef - The colour for the stroke.
- strokeWidth
PixelSize - The width of the stroke in pixels.
- strokeOpacity
Opacity - The opacity of the stroke colour.
- lineStyle
AgAnnotationLineStyleType - Defines how the line stroke is rendered. If `lineDash` is configured, this takes priority over the `lineStyle` property.
- lineDash
PixelSize[] - An array specifying the length in pixels of alternating dashes and gaps.
- lineDashOffset
PixelSize - The initial offset of the dashed line in pixels.