Back to Chart Js

Common

docs/axes/_common.md

4.5.11.8 KB
Original Source

Common options to all axes

Namespace: options.scales[scaleId]

NameTypeDefaultDescription
typestringType 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.
alignToPixelsbooleanfalseAlign pixel values to device pixels.
backgroundColorColorBackground color of the scale area.
borderobjectBorder configuration. more...
displayboolean|stringtrueControls 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.
gridobjectGrid line configuration. more...
minnumberUser defined minimum number for the scale, overrides minimum value from data. more...
maxnumberUser defined maximum number for the scale, overrides maximum value from data. more...
reversebooleanfalseReverse the scale.
stackedboolean|stringfalseShould the data be stacked. more...
suggestedMaxnumberAdjustment used when calculating the maximum data value. more...
suggestedMinnumberAdjustment used when calculating the minimum data value. more...
ticksobjectTick configuration. more...
weightnumber0The weight used to sort the axis. Higher weights are further away from the chart area.