Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
flot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HS-public
flot
Commits
881fc001
Commit
881fc001
authored
Oct 14, 2013
by
David Schnur
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1152 from sgissinger/patch-3
Update jquery.flot.threshold.js
parents
cc1d6bf3
0006469d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
jquery.flot.threshold.js
jquery.flot.threshold.js
+20
-0
No files found.
jquery.flot.threshold.js
View file @
881fc001
...
...
@@ -135,6 +135,26 @@ You may need to check for this in hover events.
}
plot
.
hooks
.
processDatapoints
.
push
(
processThresholds
);
function
processThresholdsLegend
(
ctx
,
canvas
,
s
)
{
if
(
!
s
.
threshold
)
{
return
;
}
var
color
=
s
.
threshold
.
color
?
s
.
threshold
.
color
:
"black"
;
$
(
".legendLabel"
).
each
(
function
()
{
if
(
$
(
this
).
text
()
===
s
.
label
)
{
var
legend
=
$
(
this
).
prev
().
find
(
"div > div"
);
legend
.
css
(
"border-right-color"
,
color
);
legend
.
css
(
"border-bottom-color"
,
color
);
}
});
}
plot
.
hooks
.
drawSeries
.
push
(
processThresholdsLegend
);
}
$
.
plot
.
plugins
.
push
({
...
...
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