Skip to content

Commit 26a5ca1

Browse files
committed
add hitTolerance
1 parent 1701b84 commit 26a5ca1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guide/types/doughnutLabel.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ The following options are available for label annotations.
6666
| [`content`](#general) | `string`\|`string[]`\|[`Image`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image)\|[`HTMLCanvasElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement) | Yes | `null`
6767
| [`font`](#styling) | [`Font`\|`Font[]`](../options.md#font) | Yes | `{}`
6868
| [`height`](#general) | `number`\|`string` | Yes | `undefined`
69+
| [`hitTolerance`](#general) | `number` | Yes | `0`
6970
| [`id`](#general) | `string` | No | `undefined`
7071
| [`init`](../configuration.html#common) | `boolean` | [See initial animation](../configuration.html#initial-animation) | `undefined`
7172
| [`opacity`](#styling) | `number` | Yes | `undefined`
@@ -94,6 +95,7 @@ The content will be rendered in the center of the chart.
9495
| `display` | Whether or not this annotation is visible.
9596
| `drawTime` | See [drawTime](../options.md#draw-time).
9697
| `height` | Overrides the height of the image or canvas element. Could be set in pixel by a number, or in percentage of current height of image or canvas element by a string. If undefined, uses the height of the image or canvas element. It is used only when the content is an image or canvas element.
98+
| `hitTolerance` | Amount of pixels to interact with annotations within some distance of the mouse point.
9799
| `id` | Identifies a unique id for the annotation and it will be stored in the element context. When the annotations are defined by an object, the id is automatically set using the key used to store the annotations in the object. When the annotations are configured by an array, the id, passed by this option in the annotation, will be used.
98100
| `rotation` | Rotation of the label in degrees.
99101
| `spacing` | The space in pixels between the inner radius of the chart and the background of the label.

0 commit comments

Comments
 (0)