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
bad2d1a9
Commit
bad2d1a9
authored
Apr 24, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1869 from marknoe1/extra_uom
Added units for voltage, current and frequency
parents
4fd2c057
f8ceb341
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
public/app/components/kbn.js
+6
-0
No files found.
public/app/components/kbn.js
View file @
bad2d1a9
...
...
@@ -380,6 +380,9 @@ function($, _, moment) {
kbn
.
valueFormats
.
Bps
=
kbn
.
formatFuncCreator
(
1000
,
[
' Bps'
,
' KBps'
,
' MBps'
,
' GBps'
,
' TBps'
,
' PBps'
,
' EBps'
,
' ZBps'
,
' YBps'
]);
kbn
.
valueFormats
.
short
=
kbn
.
formatFuncCreator
(
1000
,
[
''
,
' K'
,
' Mil'
,
' Bil'
,
' Tri'
,
' Qaudr'
,
' Quint'
,
' Sext'
,
' Sept'
]);
kbn
.
valueFormats
.
joule
=
kbn
.
formatFuncCreator
(
1000
,
[
' J'
,
' kJ'
,
' MJ'
,
' GJ'
,
' TJ'
,
' PJ'
,
' EJ'
,
' ZJ'
,
' YJ'
]);
kbn
.
valueFormats
.
amp
=
kbn
.
formatFuncCreator
(
1000
,
[
' A'
,
' kA'
,
' MA'
,
' GA'
,
' TA'
,
' PA'
,
' EA'
,
' ZA'
,
' YA'
]);
kbn
.
valueFormats
.
volt
=
kbn
.
formatFuncCreator
(
1000
,
[
' V'
,
' kV'
,
' MV'
,
' GV'
,
' TV'
,
' PV'
,
' EV'
,
' ZV'
,
' YV'
]);
kbn
.
valueFormats
.
hertz
=
kbn
.
formatFuncCreator
(
1000
,
[
' Hz'
,
' kHz'
,
' MHz'
,
' GHz'
,
' THz'
,
' PHz'
,
' EHz'
,
' ZHz'
,
' YHz'
]);
kbn
.
valueFormats
.
watt
=
kbn
.
formatFuncCreator
(
1000
,
[
' W'
,
' kW'
,
' MW'
,
' GW'
,
' TW'
,
' PW'
,
' EW'
,
' ZW'
,
' YW'
]);
kbn
.
valueFormats
.
kwatt
=
kbn
.
formatFuncCreator
(
1000
,
[
' kW'
,
' MW'
,
' GW'
,
' TW'
,
' PW'
,
' EW'
,
' ZW'
,
' YW'
]);
kbn
.
valueFormats
.
watth
=
kbn
.
formatFuncCreator
(
1000
,
[
' Wh'
,
' kWh'
,
' MWh'
,
' GWh'
,
' TWh'
,
' PWh'
,
' EWh'
,
' ZWh'
,
' YWh'
]);
...
...
@@ -534,6 +537,7 @@ function($, _, moment) {
{
text
:
'microseconds (µs)'
,
value
:
'µs'
},
{
text
:
'milliseconds (ms)'
,
value
:
'ms'
},
{
text
:
'seconds (s)'
,
value
:
's'
},
{
text
:
'Hertz (1/s)'
,
value
:
'hertz'
},
]
},
{
...
...
@@ -561,6 +565,8 @@ function($, _, moment) {
{
text
:
'kilowatt-hour (kWh)'
,
value
:
'kwatth'
},
{
text
:
'joule (J)'
,
value
:
'joule'
},
{
text
:
'electron volt (eV)'
,
value
:
'ev'
},
{
text
:
'Ampere (A)'
,
value
:
'amp'
},
{
text
:
'Volt (V)'
,
value
:
'volt'
},
]
},
{
...
...
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