Back to Chart Js

Common

docs/axes/cartesian/_common.md

4.5.11.2 KB
Original Source

Common options to all cartesian axes

Namespace: options.scales[scaleId]

NameTypeDefaultDescription
boundsstring'ticks'Determines the scale bounds. more...
clipbooleantrueIf true, clip the dataset drawing against the size of the scale instead of chart area
positionstring | objectPosition of the axis. more...
stackstringStack group. Axes at the same position with same stack are stacked.
stackWeightnumber1Weight of the scale in stack group. Used to determine the amount of allocated space for the scale within the group.
axisstringWhich type of axis this is. Possible values are: 'x', 'y'. If not set, this is inferred from the first character of the ID which should be 'x' or 'y'.
offsetbooleanfalseIf true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.
titleobjectScale title configuration. more...