Usage
The nicetix function returns an array of evenly spaced, "nice" numbers based on a given minimum, maximum, and an upper limit on the number of values you want.
for scalebars and graphs
$ npm install nicetix
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]
(The scalebar in this example was created with dv-scalebar, a versatile framework-agnostic scalebar component)