interface ChartJs.CartesianScaleOptions
implements CoreScaleOptions
import { type ChartJs } from "https://deno.land/x/fresh_charts@0.3.1/deps.ts";
const { CartesianScaleOptions } = ChartJs;
Properties
Scale boundary strategy (bypassed by min/max time options)
data
: make sure data are fully visible, ticks outside are removedticks
: make sure ticks are fully visible, data outside are truncated
Position of the axis.
Weight of the scale in stack group. Used to determine the amount of allocated space for the scale within the group.
Which type of axis this is. Possible values are: 'x', 'y', 'r'. If not set, this is inferred from the first character of the ID which should be 'x', 'y' or 'r'.
If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.
grid: Partial<GridLineOptions>
border: BorderOptions
title: { display: boolean; align: Align; text: string | string[]; color: Color; font: ScriptableAndScriptableOptions<Partial<FontSpec>, ScriptableCartesianScaleContext>; padding: number | { top: number; bottom: number; y: number; }; }
Options for the scale title.
ticks: CartesianTickOptions