]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Add pointLabel context type documentation (#11054)
authorstockiNail <stocki.nail@gmail.com>
Fri, 13 Jan 2023 08:05:19 +0000 (09:05 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Jan 2023 08:05:19 +0000 (10:05 +0200)
docs/axes/radial/linear.md
docs/general/options.md

index 8e6e11c0c46bcb03bbf08a81930689a4a51d9f8f..465649825b952acc4206fee0cacd7e9b8e02ffec 100644 (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
 
index 55f90480c04ef3f5486b66caab498528c36e8daa..b986e6b748ab79bb3c4fbdcb92312be3d3e32675 100644 (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)