Skip to content
On this page

module formatting.ts

type AxisTickFormatter

ts
export type AxisTickFormatter = (
    value: Value,
    tickIndex?: number
) => string;

A function to format axis tick values into string label

type ValueFormatter

ts
export type ValueFormatter = (value: Value, originalIndex?: number) => string;

A function to format values into strings for display

function getDefaultValueFormatter

ts
() => ValueFormatter

Parameters

Returns ValueFormatter

function getDefaultTickFormatter

ts
() => AxisTickFormatter

Parameters

Returns AxisTickFormatter

Released under the MIT License.