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
4b1ff972
Commit
4b1ff972
authored
Feb 20, 2013
by
David Schnur
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #966 from bor/fix/PLUGINS_example
Fix example (syntax error and indenting).
parents
2cd4f8b9
68df2de3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
PLUGINS.md
PLUGINS.md
+10
-9
No files found.
PLUGINS.md
View file @
4b1ff972
...
@@ -45,17 +45,18 @@ how much info to output:
...
@@ -45,17 +45,18 @@ how much info to output:
var
debugLevel
=
1
;
var
debugLevel
=
1
;
function
checkDebugEnabled
(
plot
,
options
)
{
function
checkDebugEnabled
(
plot
,
options
)
{
if
(
options
.
debug
)
{
if
(
options
.
debug
)
{
debugLevel
=
options
.
debug
;
debugLevel
=
options
.
debug
;
plot
.
hooks
.
processDatapoints
.
push
(
alertSeries
);
plot
.
hooks
.
processDatapoints
.
push
(
alertSeries
);
}
}
}
}
function
alertSeries
(
plot
,
series
,
datapoints
)
{
function
alertSeries
(
plot
,
series
,
datapoints
)
{
var
msg
=
"series "
+
series
.
label
;
var
msg
=
"series "
+
series
.
label
;
if
(
debugLevel
>
1
)
{
if
(
debugLevel
>
1
)
{
msg
+=
" with "
+
series
.
data
.
length
+
" points"
;
msg
+=
" with "
+
series
.
data
.
length
+
" points"
;
alert
(
msg
);
alert
(
msg
);
}
}
}
plot
.
hooks
.
processOptions
.
push
(
checkDebugEnabled
);
plot
.
hooks
.
processOptions
.
push
(
checkDebugEnabled
);
...
...
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