# Interface: CoreScaleOptions
# Hierarchy
CoreScaleOptions
# Properties
# alignToPixels
• alignToPixels: boolean
Align pixel values to device pixels
# Defined in
types/index.d.ts:1168
# backgroundColor
• backgroundColor: Color
Background color of the scale area.
# Defined in
types/index.d.ts:1172
# clip
• clip: boolean
Clip the dataset drawing against the size of the scale instead of chart area.
Default
true
# Defined in
types/index.d.ts:1182
# 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
types/index.d.ts:1164
# max
• max: unknown
User defined maximum value for the scale, overrides maximum value from data.
# Defined in
types/index.d.ts:1195
# min
• min: unknown
User defined minimum value for the scale, overrides minimum value from data.
# Defined in
types/index.d.ts:1191
# reverse
• reverse: boolean
Reverse the scale.
Default
false
# Defined in
types/index.d.ts:1177
# suggestedMax
• suggestedMax: unknown
Adjustment used when calculating the minimum data value.
# Defined in
types/index.d.ts:1203
# suggestedMin
• suggestedMin: unknown
Adjustment used when calculating the maximum data value.
# Defined in
types/index.d.ts:1199
# weight
• weight: number
The weight used to sort the axis. Higher weights are further away from the chart area.
Default
true
# Defined in
types/index.d.ts:1187
# Methods
# afterBuildTicks
▸ afterBuildTicks(axis
): void
Callback that runs after ticks are created. Useful for filtering ticks.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1231
# afterCalculateLabelRotation
▸ afterCalculateLabelRotation(axis
): void
Callback that runs after tick rotation is determined.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1247
# afterDataLimits
▸ afterDataLimits(axis
): void
Callback that runs after data limits are determined.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1223
# afterFit
▸ afterFit(axis
): void
Callback that runs after the scale fits to the canvas.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1255
# afterSetDimensions
▸ afterSetDimensions(axis
): void
Callback that runs after dimensions are set.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1215
# afterTickToLabelConversion
▸ afterTickToLabelConversion(axis
): void
Callback that runs after ticks are converted into strings.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1239
# afterUpdate
▸ afterUpdate(axis
): void
Callback that runs at the end of the update process.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1259
# beforeBuildTicks
▸ beforeBuildTicks(axis
): void
Callback that runs before ticks are created.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1227
# beforeCalculateLabelRotation
▸ beforeCalculateLabelRotation(axis
): void
Callback that runs before tick rotation is determined.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1243
# beforeDataLimits
▸ beforeDataLimits(axis
): void
Callback that runs before data limits are determined.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1219
# beforeFit
▸ beforeFit(axis
): void
Callback that runs before the scale fits to the canvas.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1251
# beforeSetDimensions
▸ beforeSetDimensions(axis
): void
Callback that runs before dimensions are set.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1211
# beforeTickToLabelConversion
▸ beforeTickToLabelConversion(axis
): void
Callback that runs before ticks are converted into strings.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1235
# beforeUpdate
▸ beforeUpdate(axis
): void
Callback called before the update process starts.
# Parameters
Name | Type |
---|---|
axis | Scale <CoreScaleOptions > |
# Returns
void
# Defined in
types/index.d.ts:1207