Skip to content

charton API


charton API / @chart-on/core / index / niceStep

Function: niceStep() ​

niceStep(raw): number

Defined in: packages/core/src/util/format.ts:8

Round a raw step up to 1/2/2.5/5 × 10^n.

Parameters ​

raw ​

number

Returns ​

number