mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #11000 from victorclaessen/master
Added radiation units
This commit is contained in:
commit
1fe8b33f65
@ -571,6 +571,17 @@ kbn.valueFormats.degree = kbn.formatBuilders.fixedUnit('°');
|
|||||||
kbn.valueFormats.radian = kbn.formatBuilders.fixedUnit('rad');
|
kbn.valueFormats.radian = kbn.formatBuilders.fixedUnit('rad');
|
||||||
kbn.valueFormats.grad = kbn.formatBuilders.fixedUnit('grad');
|
kbn.valueFormats.grad = kbn.formatBuilders.fixedUnit('grad');
|
||||||
|
|
||||||
|
// Radiation
|
||||||
|
kbn.valueFormats.radbq = kbn.formatBuilders.decimalSIPrefix('Bq');
|
||||||
|
kbn.valueFormats.radci = kbn.formatBuilders.decimalSIPrefix('Ci');
|
||||||
|
kbn.valueFormats.radgy = kbn.formatBuilders.decimalSIPrefix('Gy');
|
||||||
|
kbn.valueFormats.radrad = kbn.formatBuilders.decimalSIPrefix('rad');
|
||||||
|
kbn.valueFormats.radsv = kbn.formatBuilders.decimalSIPrefix('Sv');
|
||||||
|
kbn.valueFormats.radrem = kbn.formatBuilders.decimalSIPrefix('rem');
|
||||||
|
kbn.valueFormats.radexpckg = kbn.formatBuilders.decimalSIPrefix('C/kg');
|
||||||
|
kbn.valueFormats.radr = kbn.formatBuilders.decimalSIPrefix('R');
|
||||||
|
kbn.valueFormats.radsvh = kbn.formatBuilders.decimalSIPrefix('Sv/h');
|
||||||
|
|
||||||
// Time
|
// Time
|
||||||
kbn.valueFormats.hertz = kbn.formatBuilders.decimalSIPrefix('Hz');
|
kbn.valueFormats.hertz = kbn.formatBuilders.decimalSIPrefix('Hz');
|
||||||
|
|
||||||
@ -1036,6 +1047,20 @@ kbn.getUnitFormats = function() {
|
|||||||
{ text: 'G unit', value: 'accG' },
|
{ text: 'G unit', value: 'accG' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
text: 'radiation',
|
||||||
|
submenu: [
|
||||||
|
{ text: 'Becquerel (Bq)', value: 'radbq' },
|
||||||
|
{ text: 'curie (Ci)', value: 'radci' },
|
||||||
|
{ text: 'Gray (Gy)', value: 'radgy' },
|
||||||
|
{ text: 'rad', value: 'radrad' },
|
||||||
|
{ text: 'Sievert (Sv)', value: 'radsv' },
|
||||||
|
{ text: 'rem', value: 'radrem' },
|
||||||
|
{ text: 'Exposure (C/kg)', value: 'radexpckg' },
|
||||||
|
{ text: 'roentgen (R)', value: 'radr' },
|
||||||
|
{ text: 'Sievert/hour (Sv/h)', value: 'radsvh' },
|
||||||
|
],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user