# nice-ticks **Repository Path**: mirrors_felixfbecker/nice-ticks ## Basic Information - **Project Name**: nice-ticks - **Description**: Nice Numbers for Graph Labels - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # nice-ticks Nice Ticks for Node.JS and Browser ## Install ```sh npm install nice-ticks ``` ## For Browser ```html ``` ## Usage ```js const niceTicks = require("nice-ticks"); var minValue = 0.81; var maxValue = 12.3 var numTicks = 4; //default var ticks = niceTicks(minValue, maxValue, numTicks); console.log(ticks); //[0, 5, 10, 15] ``` [more test cases](./test/test.js) ## Reference "Nice Numbers for Graph Labels", Graphics Gems, pp 61-63.