Skip to content

Instantly share code, notes, and snippets.


Claudia Romano claudia-romano

View GitHub Profile
igodorogea / nice-scale.js
Created January 11, 2017 23:16
Javascript - Algorithm for Optimal Scaling on a Chart Axis (Nice Numbers for Graph Labels)
View nice-scale.js
function NiceScale (lowerBound, upperBound, _maxTicks) {
var maxTicks = _maxTicks || 10;
var tickSpacing;
var range;
var niceLowerBound;
var niceUpperBound;
ericelliott /
Last active February 3, 2023 01:06
Essential JavaScript Links