mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
Add pointLabel context type documentation (#11054)
This commit is contained in:
parent
b2b881b9b1
commit
be049a3296
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user