Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.CoreScaleOptions

A server-side-rendered charting library for Fresh
Go to Latest
interface ChartJs.CoreScaleOptions
import { type ChartJs } from "https://deno.land/x/fresh_charts@0.2.1/deps.ts";
const { CoreScaleOptions } = ChartJs;

Properties

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.

alignToPixels: boolean

Align pixel values to device pixels

reverse: boolean

Reverse the scale.

weight: number

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

Methods

beforeUpdate(axis: Scale$2): void

Callback called before the update process starts.

beforeSetDimensions(axis: Scale$2): void

Callback that runs before dimensions are set.

afterSetDimensions(axis: Scale$2): void

Callback that runs after dimensions are set.

beforeDataLimits(axis: Scale$2): void

Callback that runs before data limits are determined.

afterDataLimits(axis: Scale$2): void

Callback that runs after data limits are determined.

beforeBuildTicks(axis: Scale$2): void

Callback that runs before ticks are created.

afterBuildTicks(axis: Scale$2): void

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

beforeTickToLabelConversion(axis: Scale$2): void

Callback that runs before ticks are converted into strings.

afterTickToLabelConversion(axis: Scale$2): void

Callback that runs after ticks are converted into strings.

beforeCalculateLabelRotation(axis: Scale$2): void

Callback that runs before tick rotation is determined.

afterCalculateLabelRotation(axis: Scale$2): void

Callback that runs after tick rotation is determined.

beforeFit(axis: Scale$2): void

Callback that runs before the scale fits to the canvas.

afterFit(axis: Scale$2): void

Callback that runs after the scale fits to the canvas.

afterUpdate(axis: Scale$2): void

Callback that runs at the end of the update process.