mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
a20c419583
commit
00b18a8aea
@ -478,6 +478,12 @@ function($, _) {
|
|||||||
kbn.valueFormats.lengthkm = kbn.formatBuilders.decimalSIPrefix('m', 1);
|
kbn.valueFormats.lengthkm = kbn.formatBuilders.decimalSIPrefix('m', 1);
|
||||||
kbn.valueFormats.lengthmi = kbn.formatBuilders.fixedUnit('mi');
|
kbn.valueFormats.lengthmi = kbn.formatBuilders.fixedUnit('mi');
|
||||||
|
|
||||||
|
// Mass
|
||||||
|
kbn.valueFormats.massmg = kbn.formatBuilders.decimalSIPrefix('g', -1);
|
||||||
|
kbn.valueFormats.massg = kbn.formatBuilders.decimalSIPrefix('g');
|
||||||
|
kbn.valueFormats.masskg = kbn.formatBuilders.decimalSIPrefix('g', 1);
|
||||||
|
kbn.valueFormats.masst = kbn.formatBuilders.fixedUnit('t');
|
||||||
|
|
||||||
// Velocity
|
// Velocity
|
||||||
kbn.valueFormats.velocityms = kbn.formatBuilders.fixedUnit('m/s');
|
kbn.valueFormats.velocityms = kbn.formatBuilders.fixedUnit('m/s');
|
||||||
kbn.valueFormats.velocitykmh = kbn.formatBuilders.fixedUnit('km/h');
|
kbn.valueFormats.velocitykmh = kbn.formatBuilders.fixedUnit('km/h');
|
||||||
@ -797,6 +803,15 @@ function($, _) {
|
|||||||
{text: 'mile (mi)', value: 'lengthmi'},
|
{text: 'mile (mi)', value: 'lengthmi'},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
text: 'mass',
|
||||||
|
submenu: [
|
||||||
|
{text: 'milligram (mg)', value: 'massmg'},
|
||||||
|
{text: 'gram (g)', value: 'massg' },
|
||||||
|
{text: 'kilogram (kg)', value: 'masskg'},
|
||||||
|
{text: 'metric ton (t)', value: 'masst' },
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
text: 'velocity',
|
text: 'velocity',
|
||||||
submenu: [
|
submenu: [
|
||||||
|
Loading…
Reference in New Issue
Block a user