Skip to content

laem/frmttr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frmttr

Simple and dirty number formatter based on d3.format

Mainly useful to get two alternative notations from a number, e.g. for a bar chart.

1234567 -> {  short: "1.2k", // the bar display value
              alt: "1,234,567" // the alternative value that pops on hover
            }

Using https://github.com/mbostock/d3/wiki/Formatting

Initiated at qunb

About

Simple and dirty number formatter based on d3.format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages