From be049a329610a058890fe81d4cd38c6dc05c674d Mon Sep 17 00:00:00 2001 From: stockiNail Date: Fri, 13 Jan 2023 09:05:19 +0100 Subject: [PATCH] Add pointLabel context type documentation (#11054) --- docs/axes/radial/linear.md | 4 ++-- docs/general/options.md | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/axes/radial/linear.md b/docs/axes/radial/linear.md index 8e6e11c0c46..465649825b9 100644 --- a/docs/axes/radial/linear.md +++ b/docs/axes/radial/linear.md @@ -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 diff --git a/docs/general/options.md b/docs/general/options.md index 55f90480c04..b986e6b748a 100644 --- a/docs/general/options.md +++ b/docs/general/options.md @@ -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)