Skip to content

Instantly share code, notes, and snippets.

Avatar

Claudia Romano claudia-romano

View GitHub Profile
@igodorogea
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;
calculate();
@ericelliott
ericelliott / essential-javascript-links.md
Last active February 3, 2023 01:06
Essential JavaScript Links
View essential-javascript-links.md