Interface: CoreScaleOptions

    alignToPixels: boolean

    Align pixel values to device pixels

    Defined in: index.esm.d.ts:1077 (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.

    true

    Defined in: index.esm.d.ts:1073CoreScaleOptions - 图2 (opens new window)


    reverse

    reverse: boolean

    Reverse the scale.

    default false

    Defined in: index.esm.d.ts:1082 (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: index.esm.d.ts:1087CoreScaleOptions - 图4 (opens new window)

    afterBuildTicks

    afterBuildTicks(axis: Scale<>): void

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

    Parameters:

    Returns: void

    Defined in:


    afterCalculateTickRotation

    afterCalculateTickRotation(axis: <CoreScaleOptions>): void

    Callback that runs after tick rotation is determined.

    Parameters:

    NameType
    axisScale<>

    Returns: void


    afterDataLimits(axis: Scale<>): void

    Callback that runs after data limits are determined.

    Parameters:

    NameType
    axis<CoreScaleOptions>

    Returns: void

    Defined in:


    afterFit

    afterFit(axis: <CoreScaleOptions>): void

    Callback that runs after the scale fits to the canvas.

    Parameters:

    NameType
    Scale<>

    Returns: void

    Defined in: index.esm.d.ts:1139 (opens new window)


    afterSetDimensions

    afterSetDimensions(axis: Scale<>): void

    Callback that runs after dimensions are set.

    Parameters:

    Returns: void

    Defined in:


    afterTickToLabelConversion

    afterTickToLabelConversion(axis: <CoreScaleOptions>): void

    Callback that runs after ticks are converted into strings.

    Parameters:

    NameType
    axisScale<>

    Returns: void

    Defined in: index.esm.d.ts:1123 (opens new window)


    afterUpdate

    afterUpdate(axis: Scale<>): void

    Callback that runs at the end of the update process.

    Parameters:

    NameType
    axis<CoreScaleOptions>

    Returns: void

    Defined in:


    beforeBuildTicks

    beforeBuildTicks(axis: <CoreScaleOptions>): void

    Callback that runs before ticks are created.

    Parameters:

    NameType
    axisScale<>

    Returns: void


    beforeCalculateTickRotation(axis: Scale<>): void

    Callback that runs before tick rotation is determined.

    Parameters:

    Returns: void

    Defined in:


    beforeDataLimits

    beforeDataLimits(axis: <CoreScaleOptions>): void

    Callback that runs before data limits are determined.

    Parameters:

    NameType
    axisScale<>

    Returns: void

    Defined in: index.esm.d.ts:1103CoreScaleOptions - 图14 (opens new window)


    beforeFit

    beforeFit(axis: Scale<>): void

    Callback that runs before the scale fits to the canvas.

    Parameters:

    NameType
    axis<CoreScaleOptions>

    Returns: void

    Defined in:


    beforeSetDimensions

    beforeSetDimensions(axis: <CoreScaleOptions>): void

    Callback that runs before dimensions are set.

    Parameters:

    NameType
    axisScale<>

    Returns: void

    Defined in: index.esm.d.ts:1095CoreScaleOptions - 图16 (opens new window)


    beforeTickToLabelConversion

    beforeTickToLabelConversion(axis: Scale<>): void

    Callback that runs before ticks are converted into strings.

    Parameters:

    Returns: void

    Defined in:


    beforeUpdate

    beforeUpdate(axis: <CoreScaleOptions>): void

    Callback called before the update process starts.

    Parameters:

    NameType
    Scale<>

    Returns: void