]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Correct descriptions on ticks.display and add pointLabels.display (#6293)
authorAkihiko Kusanagi <nagi@nagi-p.com>
Sun, 23 Jun 2019 15:44:35 +0000 (23:44 +0800)
committerEvert Timberg <evert.timberg@gmail.com>
Sun, 23 Jun 2019 15:44:35 +0000 (11:44 -0400)
* Correct descriptions on ticks.display and add pointLabels.display

* Remove notes about angleLines.display and pointLabels.display

docs/axes/radial/linear.md
docs/axes/styling.md

index 911b735e56dbc468bc39624742a8d9d86702c0f4..72e0edd0645eae3cf47d32526b1b0f7890329a17 100644 (file)
@@ -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&#124;Color[]</code> | `'#666'` | Font color for point labels.
 | `fontFamily` | `string` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Font family to use when rendering labels.
index b058498b652f33198ad47c818c28d7f0e52ddb92..c5ae68df6939131dbf390f7d10e4c4a459c798de 100644 (file)
@@ -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.