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
3d3958e6
Commit
3d3958e6
authored
Jan 23, 2017
by
Carl Bergquist
Committed by
GitHub
Jan 23, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7328 from jubicoy/master
Added commonly used kilo-prefixed energy units
parents
697d0867
03eb98e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
public/app/core/utils/kbn.js
+6
-0
No files found.
public/app/core/utils/kbn.js
View file @
3d3958e6
...
...
@@ -441,12 +441,15 @@ function($, _) {
kbn
.
valueFormats
.
voltamp
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'VA'
);
kbn
.
valueFormats
.
kvoltamp
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'VA'
,
1
);
kbn
.
valueFormats
.
voltampreact
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'var'
);
kbn
.
valueFormats
.
kvoltampreact
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'var'
,
1
);
kbn
.
valueFormats
.
watth
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'Wh'
);
kbn
.
valueFormats
.
kwatth
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'Wh'
,
1
);
kbn
.
valueFormats
.
joule
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'J'
);
kbn
.
valueFormats
.
ev
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'eV'
);
kbn
.
valueFormats
.
amp
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'A'
);
kbn
.
valueFormats
.
kamp
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'A'
,
1
);
kbn
.
valueFormats
.
volt
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'V'
);
kbn
.
valueFormats
.
kvolt
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'V'
,
1
);
kbn
.
valueFormats
.
dBm
=
kbn
.
formatBuilders
.
decimalSIPrefix
(
'dBm'
);
// Temperature
...
...
@@ -800,12 +803,15 @@ function($, _) {
{
text
:
'volt-ampere (VA)'
,
value
:
'voltamp'
},
{
text
:
'kilovolt-ampere (kVA)'
,
value
:
'kvoltamp'
},
{
text
:
'volt-ampere reactive (var)'
,
value
:
'voltampreact'
},
{
text
:
'kilovolt-ampere reactive (kvar)'
,
value
:
'kvoltampreact'
},
{
text
:
'watt-hour (Wh)'
,
value
:
'watth'
},
{
text
:
'kilowatt-hour (kWh)'
,
value
:
'kwatth'
},
{
text
:
'joule (J)'
,
value
:
'joule'
},
{
text
:
'electron volt (eV)'
,
value
:
'ev'
},
{
text
:
'Ampere (A)'
,
value
:
'amp'
},
{
text
:
'Kiloampere (kA)'
,
value
:
'kamp'
},
{
text
:
'Volt (V)'
,
value
:
'volt'
},
{
text
:
'Kilovolt (kV)'
,
value
:
'kvolt'
},
{
text
:
'Decibel-milliwatt (dBm)'
,
value
:
'dBm'
},
]
},
...
...
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