]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fixes issue #3490: Tick documentation is missing autoSkipPadding
authorbret b <bretjb@gmail.com>
Tue, 25 Oct 2016 03:27:03 +0000 (22:27 -0500)
committerEvert Timberg <evert.timberg+github@gmail.com>
Tue, 25 Oct 2016 22:28:13 +0000 (17:28 -0500)
Adding a single line to the docs to document autoSkipPadding.

docs/02-Scales.md

index 313cec15a7caaae3bde56a43532ab1f1aa1f86b7..df95b317919f0274e47d629cf378d59707d7235e 100644 (file)
@@ -77,6 +77,7 @@ The tick configuration is nested under the scale configuration in the `ticks` ke
 Name | Type | Default | Description
 --- | --- | --- | ---
 autoSkip | Boolean | true | If true, automatically calculates how many labels that can be shown and hides labels accordingly. Turn it off to show all labels no matter what
+autoSkipPadding | Number | 0 | Padding between the ticks on the horizontal axis when `autoSkip` is enabled. *Note: Only applicable to horizontal scales.*
 callback | Function | `function(value) { return helpers.isArray(value) ? value : '' + value; }` | Returns the string representation of the tick value as it should be displayed on the chart. See [callback](#scales-creating-custom-tick-formats) section below.
 display | Boolean | true | If true, show the ticks.
 fontColor | Color | "#666" | Font color for the tick labels.