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
6e8505ae
Commit
6e8505ae
authored
Jun 29, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2242 from sbouchex/master
Added Pressure units (mbar and hPa) and db unit
parents
aaeab317
9d4cce74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
public/app/components/kbn.js
+5
-0
No files found.
public/app/components/kbn.js
View file @
6e8505ae
...
...
@@ -399,6 +399,8 @@ function($, _, moment) {
kbn
.
valueFormats
.
celsius
=
function
(
value
,
decimals
)
{
return
kbn
.
toFixed
(
value
,
decimals
)
+
' °C'
;
};
kbn
.
valueFormats
.
farenheit
=
function
(
value
,
decimals
)
{
return
kbn
.
toFixed
(
value
,
decimals
)
+
' °F'
;
};
kbn
.
valueFormats
.
humidity
=
function
(
value
,
decimals
)
{
return
kbn
.
toFixed
(
value
,
decimals
)
+
' %H'
;
};
kbn
.
valueFormats
.
pressurembar
=
function
(
value
,
decimals
)
{
return
kbn
.
toFixed
(
value
,
decimals
)
+
' mbar'
;
};
kbn
.
valueFormats
.
pressurehpa
=
function
(
value
,
decimals
)
{
return
kbn
.
toFixed
(
value
,
decimals
)
+
' hPa'
;
};
kbn
.
valueFormats
.
ppm
=
function
(
value
,
decimals
)
{
return
kbn
.
toFixed
(
value
,
decimals
)
+
' ppm'
;
};
kbn
.
valueFormats
.
velocityms
=
function
(
value
,
decimals
)
{
return
kbn
.
toFixed
(
value
,
decimals
)
+
' m/s'
;
};
kbn
.
valueFormats
.
velocitykmh
=
function
(
value
,
decimals
)
{
return
kbn
.
toFixed
(
value
,
decimals
)
+
' km/h'
;
};
...
...
@@ -541,6 +543,7 @@ function($, _, moment) {
{
text
:
'short'
,
value
:
'short'
},
{
text
:
'percent'
,
value
:
'percent'
},
{
text
:
'ppm'
,
value
:
'ppm'
},
{
text
:
'dB'
,
value
:
'dB'
},
]
},
{
...
...
@@ -590,6 +593,8 @@ function($, _, moment) {
{
text
:
'Celcius (°C)'
,
value
:
'celsius'
},
{
text
:
'Farenheit (°F)'
,
value
:
'farenheit'
},
{
text
:
'Humidity (%H)'
,
value
:
'humidity'
},
{
text
:
'Pressure (mbar)'
,
value
:
'pressurembar'
},
{
text
:
'Pressure (hPa)'
,
value
:
'pressurehpa'
},
]
},
{
...
...
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