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
bf9c0bb9
Commit
bf9c0bb9
authored
Feb 09, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76 from axe-felix/patch-1
added support for 'less is worse' thresholds
parents
775c0ff2
86695990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/app/directives/grafanaGraph.js
+7
-3
No files found.
src/app/directives/grafanaGraph.js
View file @
bf9c0bb9
...
@@ -141,7 +141,12 @@ function (angular, $, kbn, moment, _) {
...
@@ -141,7 +141,12 @@ function (angular, $, kbn, moment, _) {
});
});
if
(
panel
.
grid
.
threshold2
)
{
if
(
panel
.
grid
.
threshold2
)
{
var
limit2
=
panel
.
grid
.
thresholdLine
?
panel
.
grid
.
threshold2
:
null
;
var
limit2
;
if
(
panel
.
grid
.
thresholdLine
)
{
limit2
=
panel
.
grid
.
threshold2
;
}
else
{
limit2
=
panel
.
grid
.
threshold1
>
panel
.
grid
.
threshold2
?
-
Infinity
:
+
Infinity
;
}
options
.
grid
.
markings
.
push
({
options
.
grid
.
markings
.
push
({
yaxis
:
{
from
:
panel
.
grid
.
threshold2
,
to
:
limit2
},
yaxis
:
{
from
:
panel
.
grid
.
threshold2
,
to
:
limit2
},
color
:
panel
.
grid
.
threshold2Color
color
:
panel
.
grid
.
threshold2Color
...
@@ -340,4 +345,4 @@ function (angular, $, kbn, moment, _) {
...
@@ -340,4 +345,4 @@ function (angular, $, kbn, moment, _) {
};
};
});
});
});
});
\ No newline at end of file
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