mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Correct descriptions on ticks.display and add pointLabels.display (#6293)
* Correct descriptions on ticks.display and add pointLabels.display * Remove notes about angleLines.display and pointLabels.display
This commit is contained in:
parent
1c857008a8
commit
0d3754254a
@ -88,7 +88,7 @@ let options = {
|
||||
|
||||
## Angle Line Options
|
||||
|
||||
The following options are used to configure angled lines that radiate from the center of the chart to the point labels. They can be found in the `angleLines` sub options. Note that these options only apply if `angleLines.display` is true.
|
||||
The following options are used to configure angled lines that radiate from the center of the chart to the point labels. They can be found in the `angleLines` sub options.
|
||||
|
||||
| Name | Type | Default | Description
|
||||
| ---- | ---- | ------- | -----------
|
||||
@ -100,10 +100,11 @@ The following options are used to configure angled lines that radiate from the c
|
||||
|
||||
## Point Label Options
|
||||
|
||||
The following options are used to configure the point labels that are shown on the perimeter of the scale. They can be found in the `pointLabels` sub options. Note that these options only apply if `pointLabels.display` is true.
|
||||
The following options are used to configure the point labels that are shown on the perimeter of the scale. They can be found in the `pointLabels` sub options.
|
||||
|
||||
| Name | Type | Default | Description
|
||||
| ---- | ---- | ------- | -----------
|
||||
| `display` | `boolean` | `true` | if true, point labels are shown.
|
||||
| `callback` | `function` | | Callback function to transform data labels to point labels. The default implementation simply returns the current string.
|
||||
| `fontColor` | <code>Color|Color[]</code> | `'#666'` | Font color for point labels.
|
||||
| `fontFamily` | `string` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Font family to use when rendering labels.
|
||||
|
||||
@ -31,7 +31,7 @@ The tick configuration is nested under the scale configuration in the `ticks` ke
|
||||
| Name | Type | Default | Description
|
||||
| ---- | ---- | ------- | -----------
|
||||
| `callback` | `function` | | Returns the string representation of the tick value as it should be displayed on the chart. See [callback](../axes/labelling.md#creating-custom-tick-formats).
|
||||
| `display` | `boolean` | `true` | If true, show tick marks.
|
||||
| `display` | `boolean` | `true` | If true, show tick labels.
|
||||
| `fontColor` | `Color` | `'#666'` | Font color for tick labels.
|
||||
| `fontFamily` | `string` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Font family for the tick labels, follows CSS font-family options.
|
||||
| `fontSize` | `number` | `12` | Font size for the tick labels.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user