Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

tickFormat

Returns a number format function suitable for displaying a tick value, automatically computing the appropriate precision based on the fixed interval between tick values, as determined by d3.tickStep.

function tickFormat(
start: number,
stop: number,
count: number,
specifier?: string,
): (d: NumberValue) => string;
§
tickFormat(start: number, stop: number, count: number, specifier?: string): (d: NumberValue) => string
[src]

§Parameters

§
start: number
[src]

Start

§
stop: number
[src]

Stop

§
count: number
[src]

Approximate number of ticks to be used when calculating precision for the number format function.

§
specifier?: string optional
[src]

An optional specifier allows a custom format where the precision of the format is automatically set by the scale as appropriate for the tick interval. If specifier uses the format type s, the scale will return a SI-prefix format based on the larger absolute value of start and stop. If the specifier already specifies a precision, this method is equivalent to locale.format.

§Return Type

§
(d: NumberValue) => string
[src]