# Point Annotations
Point annotations are used to mark points on the chart area. This can be useful for highlighting values that are of interest.
# Configuration
The following options are available for ellipse annotations.
Name | Type | Scriptable | Default |
---|---|---|---|
display | boolean | Yes | true |
adjustScaleRange | boolean | Yes | true |
drawTime | string | Yes | 'afterDatasetsDraw' |
xScaleID | string | Yes | 'x' |
yScaleID | string | Yes | 'y' |
xValue | number | Yes | undefined |
yValue | number | Yes | undefined |
radius | number | Yes | 10 |
borderColor | Color | Yes | options.color |
borderWidth | number | Yes | 1 |
borderDash | number[] | Yes | [] |
borderDashOffset | number | Yes | 0 |
backgroundColor | Color | Yes | options.color |
# General
If one of the axes does not match an axis in the chart, the ellipse will take the entire chart dimension. The 4 coordinates, xMin, xMax, yMin, yMax are optional. If not specified, the ellipse is expanded out to the edges in the respective direction.
Name | Description |
---|---|
display | Whether or not this annotation is visible |
adjustScaleRange | Should the scale range be adjusted if this annotation is out of range |
drawTime | See drawTime |
xScaleID | ID of the X scale to bind onto, default is 'x'. |
yScaleID | ID of the Y scale to bind onto, default is 'y'. |
xValue | X coordinate of the point in units along the x axis. |
yValue | Y coordinate of the point in units along the y axis. |
radius | Size of the point in pixels |
# Styling
Name | Description |
---|---|
borderColor | Stroke color |
borderWidth | Stroke width |
borderDash | Length and spacing of dashes. See MDN (opens new window). |
borderDashOffset | Offset for line dashes. See MDN (opens new window). |
backgroundColor | Fill color |