MCPcopy Create free account
hub / github.com/chartjs/Chart.js / format

Method format

src/types/index.d.ts:3524–3524  ·  view source on GitHub ↗
(value: number, format?: string)

Source from the content-addressed store, hash-verified

3522
3523export interface TimeScale<O extends TimeScaleOptions = TimeScaleOptions> extends Scale<O> {
3524 format(value: number, format?: string): string;
3525 getDataTimestamps(): number[];
3526 getLabelTimestamps(): string[];
3527 normalize(values: number[]): number[];

Callers 5

formatNumberFunction · 0.65
getLabelForValueMethod · 0.65
formatMethod · 0.65
_tickFormatFunctionMethod · 0.65

Implementers 1

TimeScalesrc/scales/scale.time.js

Calls

no outgoing calls

Tested by

no test coverage detected