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
ccd11ac9
Unverified
Commit
ccd11ac9
authored
Mar 13, 2018
by
Carl Bergquist
Committed by
GitHub
Mar 13, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11212 from flopp999/patch-1
Added concentration units and "Normal cubic metre"
parents
a9fd3e65
185aa6d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
public/app/core/utils/kbn.ts
+29
-2
No files found.
public/app/core/utils/kbn.ts
View file @
ccd11ac9
...
...
@@ -378,7 +378,6 @@ kbn.valueFormats.short = kbn.formatBuilders.scaledUnits(1000, [
' Sept',
]);
kbn.valueFormats.dB = kbn.formatBuilders.fixedUnit('dB');
kbn.valueFormats.ppm = kbn.formatBuilders.fixedUnit('ppm');
kbn.valueFormats.percent = function(size, decimals) {
if (size === null) {
...
...
@@ -557,6 +556,7 @@ kbn.valueFormats.accG = kbn.formatBuilders.fixedUnit('g');
kbn.valueFormats.litre = kbn.formatBuilders.decimalSIPrefix('
L
');
kbn.valueFormats.mlitre = kbn.formatBuilders.decimalSIPrefix('
L
', -1);
kbn.valueFormats.m3 = kbn.formatBuilders.fixedUnit('
m3
');
kbn.valueFormats.Nm3 = kbn.formatBuilders.fixedUnit('
Nm3
');
kbn.valueFormats.dm3 = kbn.formatBuilders.fixedUnit('
dm3
');
kbn.valueFormats.gallons = kbn.formatBuilders.fixedUnit('
gal
');
...
...
@@ -582,6 +582,18 @@ kbn.valueFormats.radexpckg = kbn.formatBuilders.decimalSIPrefix('C/kg');
kbn.valueFormats.radr = kbn.formatBuilders.decimalSIPrefix('
R
');
kbn.valueFormats.radsvh = kbn.formatBuilders.decimalSIPrefix('
Sv
/
h
');
// Concentration
kbn.valueFormats.conppm = kbn.formatBuilders.fixedUnit('
ppm
');
kbn.valueFormats.conppb = kbn.formatBuilders.fixedUnit('
ppb
');
kbn.valueFormats.conngm3 = kbn.formatBuilders.fixedUnit('
ng
/
m3
');
kbn.valueFormats.conngNm3 = kbn.formatBuilders.fixedUnit('
ng
/
Nm3
');
kbn.valueFormats.conμgm3 = kbn.formatBuilders.fixedUnit('
μ
g
/
m3
');
kbn.valueFormats.conμgNm3 = kbn.formatBuilders.fixedUnit('
μ
g
/
Nm3
');
kbn.valueFormats.conmgm3 = kbn.formatBuilders.fixedUnit('
mg
/
m3
');
kbn.valueFormats.conmgNm3 = kbn.formatBuilders.fixedUnit('
mg
/
Nm3
');
kbn.valueFormats.congm3 = kbn.formatBuilders.fixedUnit('
g
/
m3
');
kbn.valueFormats.congNm3 = kbn.formatBuilders.fixedUnit('
g
/
Nm3
');
// Time
kbn.valueFormats.hertz = kbn.formatBuilders.decimalSIPrefix('
Hz
');
...
...
@@ -821,7 +833,6 @@ kbn.getUnitFormats = function() {
{ text: '
percent
(
0
-
100
)
', value: '
percent
' },
{ text: '
percent
(
0.0
-
1.0
)
', value: '
percentunit
' },
{ text: '
Humidity
(
%
H
)
', value: '
humidity
' },
{ text: '
ppm
', value: '
ppm
' },
{ text: '
decibel
', value: '
dB
' },
{ text: '
hexadecimal
(
0
x
)
', value: '
hex0x
' },
{ text: '
hexadecimal
', value: '
hex
' },
...
...
@@ -969,6 +980,7 @@ kbn.getUnitFormats = function() {
{ text: '
millilitre
', value: '
mlitre
' },
{ text: '
litre
', value: '
litre
' },
{ text: '
cubic
metre
', value: '
m3
' },
{ text: '
Normal
cubic
metre
', value: '
Nm3
' },
{ text: '
cubic
decimetre
', value: '
dm3
' },
{ text: '
gallons
', value: '
gallons
' },
],
...
...
@@ -1066,6 +1078,21 @@ kbn.getUnitFormats = function() {
{ text: '
Sievert
/
hour
(
Sv
/
h
)
', value: '
radsvh
' },
],
},
{
text: '
concentration
',
submenu: [
{ text: '
parts
-
per
-
million
(
ppm
)
', value: '
conppm
' },
{ text: '
parts
-
per
-
billion
(
ppb
)
', value: '
conppb
' },
{ text: '
nanogram
per
cubic
metre
(
ng
/
m3
)
', value: '
conngm3
' },
{ text: '
nanogram
per
normal
cubic
metre
(
ng
/
Nm3
)
', value: '
conngNm3
' },
{ text: '
microgram
per
cubic
metre
(
μ
g
/
m3
)
', value: '
con
μ
gm3
' },
{ text: '
microgram
per
normal
cubic
metre
(
μ
g
/
Nm3
)
', value: '
con
μ
gNm3
' },
{ text: '
milligram
per
cubic
metre
(
mg
/
m3
)
', value: '
conmgm3
' },
{ text: '
milligram
per
normal
cubic
metre
(
mg
/
Nm3
)
', value: '
conmgNm3
' },
{ text: '
gram
per
cubic
metre
(
g
/
m3
)
', value: '
congm3
' },
{ text: '
gram
per
normal
cubic
metre
(
g
/
Nm3
)
', value: '
congNm3
' },
],
},
];
};
...
...
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