Axis label options object for the COL_Axis.
By default, labels are positioned with the first ticks defined in the axis. Labels can also be positioned at custom values with values.
ticks
values
Labels will be values at the label positions, unless specified as a specific string or number in the text property.
text
Different properties are defined in different spaces.
values, is defined in axis space, or the values along the axis.
space and offset are defined in draw space and relate to dimensions in the space the axis is being drawn into.
space
offset
precision number — Maximum number of decimal places to be shown
precision
number
format decimal | exp — 'exp' will present numbers in exponential form ('decimal')
format
decimal
exp
'exp'
'decimal'
space number — space between the ticks and the label
offset TypeParsablePoint — additional offset for the labels ([0, 0])
[0, 0]
rotation number — label rotation (0)
rotation
0
xAlign left | right | center — horizontal alignment of labels ('center' for x axes, 'right' for y axes)
xAlign
left
right
center
'center'
'right'
yAlign top | bottom | middle | baseline — vertical alignment of labels ('top' for x axes, 'middle' for y axes)
yAlign
top
bottom
middle
baseline
'top'
'middle'
font OBJ_Font — specific font changes for labels
font
hide number[] — value indexes to hide ([])
hide
[]
valueOffset OBJ_ValuesOffset — offset the position of selected values (useful to offset values in position near axis cross over points)
valueOffset
location TypeLabelLocation — location of label (defaults to 'bottom' for x axis and 'left' for y axis)
location
'bottom'
'left'
text string[] — use custom labels
string
To test examples below, append them to the boilerplate.
For more examples see OBJ_Axis.
Axis label options object for the COL_Axis.
By default, labels are positioned with the first
ticksdefined in the axis. Labels can also be positioned at custom values withvalues.Labels will be values at the label positions, unless specified as a specific string or number in the
textproperty.Different properties are defined in different spaces.
values, is defined in axis space, or the values along the axis.spaceandoffsetare defined in draw space and relate to dimensions in the space the axis is being drawn into.precisionnumber— Maximum number of decimal places to be shownformatdecimal|exp—'exp'will present numbers in exponential form ('decimal')spacenumber— space between the ticks and the labeloffsetTypeParsablePoint — additional offset for the labels ([0, 0])rotationnumber— label rotation (0)xAlignleft|right|center— horizontal alignment of labels ('center'for x axes,'right'for y axes)yAligntop|bottom|middle|baseline— vertical alignment of labels ('top'for x axes,'middle'for y axes)fontOBJ_Font — specific font changes for labelshidenumber[] — value indexes to hide ([])valueOffsetOBJ_ValuesOffset — offset the position of selected values (useful to offset values in position near axis cross over points)locationTypeLabelLocation — location of label (defaults to'bottom'for x axis and'left'for y axis)textstring[] — use custom labelsTo test examples below, append them to the boilerplate.
For more examples see OBJ_Axis.