We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
g
It's not clear from the docs, why
d3.format('')(127) //gives 127 d3.format('g')(127) //gives 127.000
?
The text was updated successfully, but these errors were encountered:
Drawing from the README:
The type (none) is also supported as shorthand for ~g (with a default precision of 12 instead of 6)
And:
The ~ option trims insignificant trailing zeros across all format types.
The trailing zeros are therefore stripped with (none), but not g.
Sorry, something went wrong.
Thanks @mbostock! I was coming from the previous 1.2 version and missed the newly added ~ option.
~
No branches or pull requests
It's not clear from the docs, why
?
The text was updated successfully, but these errors were encountered: