d3-format icon indicating copy to clipboard operation
d3-format copied to clipboard

Format numbers for human consumption.

Results 21 d3-format issues
Sort by recently updated
recently updated
newest added

Bumps [terser](https://github.com/terser/terser) from 5.10.0 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...

dependencies

This change updates the locale exports to not automatically append the `.json` suffix. The export pattern is a simple matching pattern as described in https://nodejs.org/api/packages.html#subpath-patterns and while friendly, it prohibits...

This branch merges #70 and #81 which were targeting the same set of lines.

feature

I know there is the possibility to add the currency suffix, but it would be useful to be able to add a more flexible suffix. For example "°C" for temperature...

It would be great to improve the 'human-readability' of SI format "s" for very small/large numbers. At the moment d3-format generates: ```javascript console.log(format("s")(1e-50)) -> "0.00000000000000000000000001y" console.log(format("s")(1e+50)) -> "100000000000000000000000000Y" ``` I...

Many `d3` functions use the presence of an argument to control their behavior -- if an argument is passed, it used to update the object, and if it's missing then...

Right now using a simple percent format like: ```ts const f = format('.1%') ``` Gives misleading results near `0` and `100`: ```ts f(0.0001) // 0.0% f(0.9999) // 100.0% ``` Even...

We use vega and it doesn't appear to be possible to format axis ticks (and other objects such as tooltips, text marks) as duration. Consider a data column that contains...

Perhaps out of scope, but an interesting challenge: convert numbers to words. Inspired by the [StackOverflow: Indian Numbering System. How to Convert into the Official and Common-Use Numbering Systems Words/Strings](https://stackoverflow.com/questions/62795243/indian-numbering-system-how-to-convert-into-the-official-and-common-use-numberi).

When I execute the following: `[5,10,15,20].map(v => format('$.1s')(v * 1E9))` it returns: `["$5G", "$10G", "$20G", "$20G"]` However, to me it would make more sense if the combination of SI and...