Skip to content

nicetix

for scalebars and graphs

sh
$ npm install nicetix
JS
import nicetix from "nicetix";
// nicetix(min, max, <num = 5>)

let ticks = nicetix(-1.23, 12.3, 7);
//-> [-2.5, 0, 2.5, 5, 7.5, 10, 12.5]
minmax-2.502.557.51012.5

(The scalebar in this example was created with dv-scalebar, a versatile framework-agnostic scalebar component)