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
8f29d285
Unverified
Commit
8f29d285
authored
Apr 27, 2018
by
Marcus Efraimsson
Committed by
GitHub
Apr 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11753 from grafana/11743_unit_revert
revert renaming of unit key ppm
parents
28f7b6da
138c8c34
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
public/app/core/utils/kbn.ts
+2
-2
public/app/plugins/panel/graph/graph.ts
+3
-0
No files found.
public/app/core/utils/kbn.ts
View file @
8f29d285
...
@@ -596,7 +596,7 @@ kbn.valueFormats.radr = kbn.formatBuilders.decimalSIPrefix('R');
...
@@ -596,7 +596,7 @@ kbn.valueFormats.radr = kbn.formatBuilders.decimalSIPrefix('R');
kbn.valueFormats.radsvh = kbn.formatBuilders.decimalSIPrefix('
Sv
/
h
');
kbn.valueFormats.radsvh = kbn.formatBuilders.decimalSIPrefix('
Sv
/
h
');
// Concentration
// Concentration
kbn.valueFormats.
con
ppm = kbn.formatBuilders.fixedUnit('
ppm
');
kbn.valueFormats.ppm = kbn.formatBuilders.fixedUnit('
ppm
');
kbn.valueFormats.conppb = kbn.formatBuilders.fixedUnit('
ppb
');
kbn.valueFormats.conppb = kbn.formatBuilders.fixedUnit('
ppb
');
kbn.valueFormats.conngm3 = kbn.formatBuilders.fixedUnit('
ng
/
m3
');
kbn.valueFormats.conngm3 = kbn.formatBuilders.fixedUnit('
ng
/
m3
');
kbn.valueFormats.conngNm3 = kbn.formatBuilders.fixedUnit('
ng
/
Nm3
');
kbn.valueFormats.conngNm3 = kbn.formatBuilders.fixedUnit('
ng
/
Nm3
');
...
@@ -1101,7 +1101,7 @@ kbn.getUnitFormats = function() {
...
@@ -1101,7 +1101,7 @@ kbn.getUnitFormats = function() {
{
{
text: '
concentration
',
text: '
concentration
',
submenu: [
submenu: [
{ text: '
parts
-
per
-
million
(
ppm
)
', value: '
con
ppm
' },
{ text: '
parts
-
per
-
million
(
ppm
)
', value: '
ppm
' },
{ text: '
parts
-
per
-
billion
(
ppb
)
', value: '
conppb
' },
{ text: '
parts
-
per
-
billion
(
ppb
)
', value: '
conppb
' },
{ text: '
nanogram
per
cubic
metre
(
ng
/
m3
)
', value: '
conngm3
' },
{ text: '
nanogram
per
cubic
metre
(
ng
/
m3
)
', value: '
conngm3
' },
{ text: '
nanogram
per
normal
cubic
metre
(
ng
/
Nm3
)
', value: '
conngNm3
' },
{ text: '
nanogram
per
normal
cubic
metre
(
ng
/
Nm3
)
', value: '
conngNm3
' },
...
...
public/app/plugins/panel/graph/graph.ts
View file @
8f29d285
...
@@ -634,6 +634,9 @@ function graphDirective(timeSrv, popoverSrv, contextSrv) {
...
@@ -634,6 +634,9 @@ function graphDirective(timeSrv, popoverSrv, contextSrv) {
function
configureAxisMode
(
axis
,
format
)
{
function
configureAxisMode
(
axis
,
format
)
{
axis
.
tickFormatter
=
function
(
val
,
axis
)
{
axis
.
tickFormatter
=
function
(
val
,
axis
)
{
if
(
!
kbn
.
valueFormats
[
format
])
{
throw
new
Error
(
`Unit '
${
format
}
' is not supported`
);
}
return
kbn
.
valueFormats
[
format
](
val
,
axis
.
tickDecimals
,
axis
.
scaledDecimals
);
return
kbn
.
valueFormats
[
format
](
val
,
axis
.
tickDecimals
,
axis
.
scaledDecimals
);
};
};
}
}
...
...
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