Skip to content

Commit

Permalink
Add pointLabel context type documentation (#11054)
Browse files Browse the repository at this point in the history
  • Loading branch information
stockiNail authored Jan 13, 2023
1 parent b2b881b commit be049a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/axes/radial/linear.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
8 changes: 8 additions & 0 deletions docs/general/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be049a3

Please sign in to comment.