-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
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
Replace numeral
with numbro
(or another alternative)
#3551
Comments
Added "Feature request" label because technically we need to replace the library in order to use new features (escape sequences in format string) |
+1 |
https://discuss.redash.io/t/other-currency-types-in-tables/3356/4 links here to point out '£' doesn't work as a currency symbol. Numbro's approach for currency formatting seems weird to me: if you call |
@rcoup The idea is not to use currency formatting abilities provided by |
Any update on when this will be sorted out? |
I'm not familiar with our codebase, but I find |
We use
numeral
package to format numbers in visualizations (and probably in some other places), but it wasn't updated for a quite long time, and seems it's owner don't plan to improve it. But sometimes we need features not supported bynumeral
- say, using escape sequences in format string.There are other libraries similar to
numeral
which are more actively maintained, likenumbro
- which supports similar format syntax and can use escape sequences.numbro
is my suggestion, however, some another library could be used as well (if it supports the same format syntax and escape sequences - in fact we don't use all that number manipulation stuff, only formatting).The text was updated successfully, but these errors were encountered: