mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
e1ddaa8992
* Dissociate border options from grid options * Update docs
1.1 KiB
1.1 KiB
Common tick options to all axes
Namespace: options.scales[scaleId].ticks
Name | Type | Scriptable | Default | Description |
---|---|---|---|---|
callback |
function |
Returns the string representation of the tick value as it should be displayed on the chart. See callback. | ||
display |
boolean |
true |
If true, show tick labels. | |
color |
Color |
Yes | Chart.defaults.color |
Color of ticks. |
font |
Font |
Yes | Chart.defaults.font |
See Fonts |
major |
object |
{} |
Major ticks configuration. | |
padding |
number |
3 |
Sets the offset of the tick labels from the axis | |
textStrokeColor |
Color |
Yes | `` | The color of the stroke around the text. |
textStrokeWidth |
number |
Yes | 0 |
Stroke width around the text. |
z |
number |
0 |
z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top. |