figureone
    Preparing search index...

    Interface OBJ_AxisLabels

    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.

    Labels will be values at the label positions, unless specified as a specific string or number in the text property.

    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.

    • precision number — Maximum number of decimal places to be shown

    • format decimal | exp'exp' will present numbers in exponential form ('decimal')

    • space number — space between the ticks and the label

    • offset TypeParsablePoint — additional offset for the labels ([0, 0])

    • rotation number — label rotation (0)

    • xAlign left | right | center — horizontal alignment of labels ('center' for x axes, 'right' for y axes)

    • yAlign top | bottom | middle | baseline — vertical alignment of labels ('top' for x axes, 'middle' for y axes)

    • font OBJ_Font — specific font changes for labels

    • hide number[] — value indexes to hide ([])

    • valueOffset OBJ_ValuesOffset — offset the position of selected values (useful to offset values in position near axis cross over points)

    • location TypeLabelLocation — location of label (defaults to 'bottom' for x axis and 'left' for y axis)

    • text string[] — use custom labels

    To test examples below, append them to the boilerplate.

    For more examples see OBJ_Axis.