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
9dd38031
Unverified
Commit
9dd38031
authored
Jun 14, 2018
by
Marcus Efraimsson
Committed by
GitHub
Jun 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11233 from flopp999/patch-2
units: W/m2(energy), l/h(flow) and kPa(pressure)
parents
1626a66b
08461408
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
public/app/core/utils/kbn.ts
+6
-0
No files found.
public/app/core/utils/kbn.ts
View file @
9dd38031
...
...
@@ -499,6 +499,7 @@ kbn.valueFormats.watt = kbn.formatBuilders.decimalSIPrefix('W');
kbn.valueFormats.kwatt = kbn.formatBuilders.decimalSIPrefix('W', 1);
kbn.valueFormats.mwatt = kbn.formatBuilders.decimalSIPrefix('W', -1);
kbn.valueFormats.kwattm = kbn.formatBuilders.decimalSIPrefix('W/Min', 1);
kbn.valueFormats.Wm2 = kbn.formatBuilders.fixedUnit('W/m2');
kbn.valueFormats.voltamp = kbn.formatBuilders.decimalSIPrefix('VA');
kbn.valueFormats.kvoltamp = kbn.formatBuilders.decimalSIPrefix('VA', 1);
kbn.valueFormats.voltampreact = kbn.formatBuilders.decimalSIPrefix('var');
...
...
@@ -528,6 +529,7 @@ kbn.valueFormats.pressurebar = kbn.formatBuilders.decimalSIPrefix('bar');
kbn.valueFormats.pressurembar = kbn.formatBuilders.decimalSIPrefix('bar', -1);
kbn.valueFormats.pressurekbar = kbn.formatBuilders.decimalSIPrefix('bar', 1);
kbn.valueFormats.pressurehpa = kbn.formatBuilders.fixedUnit('hPa');
kbn.valueFormats.pressurekpa = kbn.formatBuilders.fixedUnit('kPa');
kbn.valueFormats.pressurehg = kbn.formatBuilders.fixedUnit('"
Hg
');
kbn.valueFormats.pressurepsi = kbn.formatBuilders.scaledUnits(1000, ['
psi
', '
ksi
', '
Mpsi
']);
...
...
@@ -579,6 +581,7 @@ kbn.valueFormats.flowgpm = kbn.formatBuilders.fixedUnit('gpm');
kbn.valueFormats.flowcms = kbn.formatBuilders.fixedUnit('
cms
');
kbn.valueFormats.flowcfs = kbn.formatBuilders.fixedUnit('
cfs
');
kbn.valueFormats.flowcfm = kbn.formatBuilders.fixedUnit('
cfm
');
kbn.valueFormats.litreh = kbn.formatBuilders.fixedUnit('
l
/
h
');
// Angle
kbn.valueFormats.degree = kbn.formatBuilders.fixedUnit('
°
');
...
...
@@ -1014,6 +1017,7 @@ kbn.getUnitFormats = function() {
{ text: '
Watt
(
W
)
', value: '
watt
' },
{ text: '
Kilowatt
(
kW
)
', value: '
kwatt
' },
{ text: '
Milliwatt
(
mW
)
', value: '
mwatt
' },
{ text: '
Watt
per
square
metre
(
W
/
m2
)
', value: '
Wm2
' },
{ text: '
Volt
-
ampere
(
VA
)
', value: '
voltamp
' },
{ text: '
Kilovolt
-
ampere
(
kVA
)
', value: '
kvoltamp
' },
{ text: '
Volt
-
ampere
reactive
(
var
)
', value: '
voltampreact
' },
...
...
@@ -1049,6 +1053,7 @@ kbn.getUnitFormats = function() {
{ text: '
Bars
', value: '
pressurebar
' },
{ text: '
Kilobars
', value: '
pressurekbar
' },
{ text: '
Hectopascals
', value: '
pressurehpa
' },
{ text: '
Kilopascals
', value: '
pressurekpa
' },
{ text: '
Inches
of
mercury
', value: '
pressurehg
' },
{ text: '
PSI
', value: '
pressurepsi
' },
],
...
...
@@ -1069,6 +1074,7 @@ kbn.getUnitFormats = function() {
{ text: '
Cubic
meters
/
sec
(
cms
)
', value: '
flowcms
' },
{ text: '
Cubic
feet
/
sec
(
cfs
)
', value: '
flowcfs
' },
{ text: '
Cubic
feet
/
min
(
cfm
)
', value: '
flowcfm
' },
{ text: '
Litre
/
hour
', value: '
litreh
' },
],
},
{
...
...
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