Interface: CoreScaleOptions

    alignToPixels: boolean

    Align pixel values to device pixels

    Defined in

    index.esm.d.ts:1116 (opens new window)


    display

    display: boolean | "auto"

    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.

    default true

    Defined in


    reverse

    reverse: boolean

    Reverse the scale.

    default false

    Defined in

    index.esm.d.ts:1121 (opens new window)


    weight

    weight: number

    The weight used to sort the axis. Higher weights are further away from the chart area.

    default true

    Defined in

    afterBuildTicks

    afterBuildTicks(axis): void

    Callback that runs after ticks are created. Useful for filtering ticks.

    Parameters

    Returns

    void

    Defined in

    index.esm.d.ts:1154 (opens new window)


    afterCalculateLabelRotation

    afterCalculateLabelRotation(axis): void

    Callback that runs after tick rotation is determined.

    Parameters

    NameType
    axis<CoreScaleOptions>

    Returns

    void

    Defined in


    afterDataLimits(axis): void

    Callback that runs after data limits are determined.

    Parameters

    NameType
    axisScale<>

    Returns

    void

    Defined in

    index.esm.d.ts:1146CoreScaleOptions - 图7 (opens new window)


    afterFit

    afterFit(): void

    Callback that runs after the scale fits to the canvas.

    Parameters

    NameType
    axis<CoreScaleOptions>

    Returns

    void

    Defined in


    afterSetDimensions

    afterSetDimensions(axis): void

    Callback that runs after dimensions are set.

    Parameters

    Returns

    void

    Defined in

    index.esm.d.ts:1138CoreScaleOptions - 图9 (opens new window)


    afterTickToLabelConversion

    afterTickToLabelConversion(axis): void

    Callback that runs after ticks are converted into strings.

    Parameters

    NameType
    axis<CoreScaleOptions>

    Returns

    void

    Defined in


    afterUpdate

    afterUpdate(axis): void

    Callback that runs at the end of the update process.

    Parameters

    NameType
    axisScale<>

    Returns

    void

    Defined in

    index.esm.d.ts:1182CoreScaleOptions - 图11 (opens new window)


    beforeBuildTicks

    beforeBuildTicks(axis): void

    Callback that runs before ticks are created.

    Parameters

    NameType
    axis<CoreScaleOptions>

    Returns

    void

    Defined in


    beforeCalculateLabelRotation(axis):

    Callback that runs before tick rotation is determined.

    Parameters

    Returns

    void

    Defined in

    index.esm.d.ts:1166 (opens new window)


    beforeDataLimits

    beforeDataLimits(axis): void

    Callback that runs before data limits are determined.

    Parameters

    NameType
    axis<CoreScaleOptions>

    Returns

    void

    Defined in


    beforeFit

    beforeFit(axis): void

    Callback that runs before the scale fits to the canvas.

    Parameters

    NameType
    axisScale<>

    Returns

    void

    Defined in

    index.esm.d.ts:1174 (opens new window)


    beforeSetDimensions

    beforeSetDimensions(axis): void

    Callback that runs before dimensions are set.

    Parameters

    NameType
    axis<CoreScaleOptions>

    Returns

    void

    Defined in


    beforeTickToLabelConversion

    beforeTickToLabelConversion(axis): void

    Callback that runs before ticks are converted into strings.

    Parameters

    Returns

    void

    Defined in

    index.esm.d.ts:1158 (opens new window)


    beforeUpdate

    beforeUpdate(axis): void

    Callback called before the update process starts.

    Parameters

    NameType
    <CoreScaleOptions>

    Returns

    void

    Defined in