Interface: CoreScaleOptions

Hierarchy

Properties

alignToPixels

alignToPixels: boolean

Align pixel values to device pixels

Defined in

index.esm.d.ts:1090CoreScaleOptions - 图1 (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

index.esm.d.ts:1086CoreScaleOptions - 图2 (opens new window)


reverse

reverse: boolean

Reverse the scale.

default false

Defined in

index.esm.d.ts:1095CoreScaleOptions - 图3 (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:1100CoreScaleOptions - 图4 (opens new window)

Methods

afterBuildTicks

afterBuildTicks(axis): void

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

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

index.esm.d.ts:1128CoreScaleOptions - 图5 (opens new window)


afterCalculateLabelRotation

afterCalculateLabelRotation(axis): void

Callback that runs after tick rotation is determined.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

index.esm.d.ts:1144CoreScaleOptions - 图6 (opens new window)


afterDataLimits

afterDataLimits(axis): void

Callback that runs after data limits are determined.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

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


afterFit

afterFit(axis): void

Callback that runs after the scale fits to the canvas.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

index.esm.d.ts:1152CoreScaleOptions - 图8 (opens new window)


afterSetDimensions

afterSetDimensions(axis): void

Callback that runs after dimensions are set.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

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


afterTickToLabelConversion

afterTickToLabelConversion(axis): void

Callback that runs after ticks are converted into strings.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

index.esm.d.ts:1136CoreScaleOptions - 图10 (opens new window)


afterUpdate

afterUpdate(axis): void

Callback that runs at the end of the update process.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

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


beforeBuildTicks

beforeBuildTicks(axis): void

Callback that runs before ticks are created.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

index.esm.d.ts:1124CoreScaleOptions - 图12 (opens new window)


beforeCalculateLabelRotation

beforeCalculateLabelRotation(axis): void

Callback that runs before tick rotation is determined.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

index.esm.d.ts:1140CoreScaleOptions - 图13 (opens new window)


beforeDataLimits

beforeDataLimits(axis): void

Callback that runs before data limits are determined.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

index.esm.d.ts:1116CoreScaleOptions - 图14 (opens new window)


beforeFit

beforeFit(axis): void

Callback that runs before the scale fits to the canvas.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

index.esm.d.ts:1148CoreScaleOptions - 图15 (opens new window)


beforeSetDimensions

beforeSetDimensions(axis): void

Callback that runs before dimensions are set.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

index.esm.d.ts:1108CoreScaleOptions - 图16 (opens new window)


beforeTickToLabelConversion

beforeTickToLabelConversion(axis): void

Callback that runs before ticks are converted into strings.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

index.esm.d.ts:1132CoreScaleOptions - 图17 (opens new window)


beforeUpdate

beforeUpdate(axis): void

Callback called before the update process starts.

Parameters

NameType
axisScale<CoreScaleOptions>

Returns

void

Defined in

index.esm.d.ts:1104CoreScaleOptions - 图18 (opens new window)