-
Notifications
You must be signed in to change notification settings - Fork 8.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
Add custom formater for very small number in Numeral.js #53676
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
Just confirmed that we don't have formatting support for this, for both negative and positive values. There is already a scientific notation formatter which does not allow control over the number of digits shown:
I would imagine that we don't want to break existing formatters, so maybe we can add a new formatter for this. The closest fit to this request might actually be a formatter that accepts a fixed # of digits to show, similar to the numeral-js fork numbro: https://numbrojs.com/format.html We could build a custom formatter for "Fixed length number" and "Fixed length scientific notation" for example, neither of which requires numeraljs formatting to implement. The biggest reason to stick with numeraljs is its number locale support. Otherwise, there is built-in JS support for the following operations:
|
Pinging @elastic/kibana-app-arch (Team:AppArch) |
Thank you for contributing to this issue, however, we are closing this issue due to inactivity as part of a backlog grooming effort. If you believe this feature/bug should still be considered, please reopen with a comment. |
Describe the feature:
Numeral.js supports custom formaters but not for very "very" small numbers.
Describe a specific use case for the feature:
Specifically in metric visualisation, kibana cannot show very small numbers, shorter. So for example I want show this number "5.123,123,123,324,234e-53" like "5.123e-53".
The text was updated successfully, but these errors were encountered: