Add pointLabel context type documentation (#11054)

This commit is contained in:
stockiNail 2023-01-13 09:05:19 +01:00 committed by GitHub
parent b2b881b9b1
commit be049a3296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -142,7 +142,7 @@ Namespace: `options.scales[scaleId].angleLines`
1. the `borderDash` setting only accepts a static value or a function. Passing an array of arrays is not supported.
The scriptable context is described in [Options](../../general/options.md#scale) section.
The scriptable context is described in [Options](../../general/options.md#pointLabel) section.
## Point Label Options
@ -161,7 +161,7 @@ Namespace: `options.scales[scaleId].pointLabels`
| `padding` | `number` | Yes | 5 | Padding between chart and point labels.
| [`centerPointLabels`](../../samples/other-charts/polar-area-center-labels.md) | `boolean` | | `false` | If true, point labels are centered.
The scriptable context is described in [Options](../../general/options.md#scale) section.
The scriptable context is described in [Options](../../general/options.md#pointLabel) section.
## Internal data format

View File

@ -168,6 +168,14 @@ In addition to [scale](#scale)
* `index`: tick index
* `type`: `'tick'`
### pointLabel
In addition to [scale](#scale)
* `label`: the associated label value
* `index`: label index
* `type`: `'pointLabel'`
### tooltip
In addition to [chart](#chart)