# Ellipse Annotations
Ellipse annotations are used to draw circles on the chart area. This can be useful for highlighting different areas of a chart.
# 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' |
rotation | number | Yes | 0 |
xScaleID | string | Yes | 'x' |
yScaleID | string | Yes | 'y' |
xMin | number | string | Yes | undefined |
xMax | number | string | Yes | undefined |
yMin | number | string | Yes | undefined |
yMax | number | string | Yes | undefined |
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 |
rotation | Rotatation of the ellipse in degrees, default is 0. |
xScaleID | ID of the X scale to bind onto, default is 'x'. |
yScaleID | ID of the Y scale to bind onto, default is 'y'. |
xMin | Left edge of the ellipse in units along the x axis. |
xMax | Right edge of the ellipse in units along the x axis. |
yMin | Top edge of the ellipse in units along the y axis. |
yMax | Bottom edge of the ellipse in units along the y axis. |
# 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 |