mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
362a349d9f
commit
578ba9bbd5
@ -394,6 +394,10 @@ function($, _) {
|
||||
return "0x" + hexString;
|
||||
};
|
||||
|
||||
kbn.valueFormats.sci = function(value, decimals) {
|
||||
return value.toExponential(decimals);
|
||||
};
|
||||
|
||||
// Currencies
|
||||
kbn.valueFormats.currencyUSD = kbn.formatBuilders.currency('$');
|
||||
kbn.valueFormats.currencyGBP = kbn.formatBuilders.currency('£');
|
||||
@ -712,6 +716,7 @@ function($, _) {
|
||||
{text: 'decibel', value: 'dB' },
|
||||
{text: 'hexadecimal (0x)', value: 'hex0x' },
|
||||
{text: 'hexadecimal', value: 'hex' },
|
||||
{text: 'scientific notation', value: 'sci' },
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user