Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/laem/frmttr

Simple and dirty number formatter based on d3.format
https://github.com/laem/frmttr

Last synced: 18 days ago
JSON representation

Simple and dirty number formatter based on d3.format

Awesome Lists containing this project

README

        

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