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
f294bf19
Commit
f294bf19
authored
Feb 03, 2013
by
David Schnur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up processOptions and bindEvents hooks.
parent
aaf41ea4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
jquery.flot.pie.js
jquery.flot.pie.js
+4
-11
No files found.
jquery.flot.pie.js
View file @
f294bf19
...
...
@@ -81,16 +81,9 @@ More detail and specific examples can be found in the included HTML file.
// add hook to determine if pie plugin in enabled, and then perform necessary operations
plot
.
hooks
.
processOptions
.
push
(
checkPieEnabled
);
plot
.
hooks
.
bindEvents
.
push
(
bindEvents
);
// check to see if the pie plugin is enabled
function
checkPieEnabled
(
plot
,
options
)
{
plot
.
hooks
.
processOptions
.
push
(
function
(
plot
,
options
)
{
if
(
options
.
series
.
pie
.
show
)
{
//disable grid
options
.
grid
.
show
=
false
;
// set labels.show
...
...
@@ -130,11 +123,11 @@ More detail and specific examples can be found in the included HTML file.
plot
.
hooks
.
draw
.
push
(
draw
);
}
}
}
);
// bind hoverable events
function
bindEvents
(
plot
,
eventHolder
)
{
plot
.
hooks
.
bindEvents
.
push
(
function
(
plot
,
eventHolder
)
{
var
options
=
plot
.
getOptions
();
if
(
options
.
series
.
pie
.
show
)
{
if
(
options
.
grid
.
hoverable
)
{
...
...
@@ -144,7 +137,7 @@ More detail and specific examples can be found in the included HTML file.
eventHolder
.
unbind
(
"click"
).
click
(
onClick
);
}
}
}
}
);
// debugging function that prints out an object
...
...
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