Skip to content

Documentation / @ripl/core / resolveNiceCount

Function: resolveNiceCount() ​

resolveNiceCount(nice): number | undefined

Defined in: packages/core/src/scales/_base/index.ts:76

Resolves a nice option to a target tick count (defaults to 10 when true).

Parameters ​

ParameterType
nicenumber | boolean | undefined

Returns ​

number | undefined