Skip to content

A tool for calculating the scale range of a chart

Notifications You must be signed in to change notification settings

jalery922/chart-scale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A tool for calculating the scale range of a chart

Install

npm install chart-scale

Import

import getChartScale from 'chart-scale'
import { getChartScale } from 'chart-scale'

Use

const { max, min, interval } = getChartScale(5.3, -0.9, 7)
console.log(max, min, interval)
// {max: 6, min: -1, interval: 1}

About

A tool for calculating the scale range of a chart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published