Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
1fe8b33f
Unverified
Commit
1fe8b33f
authored
Mar 06, 2018
by
Carl Bergquist
Committed by
GitHub
Mar 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11000 from victorclaessen/master
Added radiation units
parents
4d434d98
91e8468f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
public/app/core/utils/kbn.ts
+25
-0
No files found.
public/app/core/utils/kbn.ts
View file @
1fe8b33f
...
...
@@ -571,6 +571,17 @@ kbn.valueFormats.degree = kbn.formatBuilders.fixedUnit('°');
kbn.valueFormats.radian = kbn.formatBuilders.fixedUnit('
rad
');
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
kbn.valueFormats.hertz = kbn.formatBuilders.decimalSIPrefix('
Hz
');
...
...
@@ -1036,6 +1047,20 @@ kbn.getUnitFormats = function() {
{ 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
' },
],
},
];
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment