mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
3eb947719e
* put borderOpts in own object * document z option * remove todo and change scaleId to id * update some tests * clean bit, remove console log * fix failing test * lint * Remove comment
1.8 KiB
1.8 KiB
Common options to all axes
Namespace: options.scales[scaleId]
Name | Type | Default | Description |
---|---|---|---|
type |
string |
Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart. | |
alignToPixels |
boolean |
false |
Align pixel values to device pixels. |
backgroundColor |
Color |
Background color of the scale area. | |
border |
object |
Border configuration. more... | |
display |
boolean |string |
true |
Controls the axis global visibility (visible when true , hidden when false ). When display: 'auto' , the axis is visible only if at least one associated dataset is visible. |
grid |
object |
Grid line configuration. more... | |
min |
number |
User defined minimum number for the scale, overrides minimum value from data. more... | |
max |
number |
User defined maximum number for the scale, overrides maximum value from data. more... | |
reverse |
boolean |
false |
Reverse the scale. |
stacked |
boolean |string |
false |
Should the data be stacked. more... |
suggestedMax |
number |
Adjustment used when calculating the maximum data value. more... | |
suggestedMin |
number |
Adjustment used when calculating the minimum data value. more... | |
ticks |
object |
Tick configuration. more... | |
weight |
number |
0 |
The weight used to sort the axis. Higher weights are further away from the chart area. |