Skip to content

Function: resolveTicks()

ts
function resolveTicks(
   spec, 
   min, 
   max): Tick[] | null;

Defined in: axes/ticks.ts:66

Resolve a user TicksSpec (array | Tick[] | generator) against the current axis range into a concrete, sorted Tick list. Returns null if no explicit spec was given, signaling the caller to fall back to auto ticks.

Parameters

ParameterType
specTicksSpec | undefined
minnumber
maxnumber

Returns

Tick[] | null

MIT licensed. WebGL2 required.