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
6aa3696e
Commit
6aa3696e
authored
Nov 25, 2012
by
David Schnur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further style cleanup.
parent
0a601d03
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
jquery.flot.pie.js
jquery.flot.pie.js
+5
-4
No files found.
jquery.flot.pie.js
View file @
6aa3696e
...
@@ -61,7 +61,7 @@ More detail and specific examples can be found in the included HTML file.
...
@@ -61,7 +61,7 @@ More detail and specific examples can be found in the included HTML file.
*/
*/
(
function
(
$
)
{
(
function
(
$
)
{
function
init
(
plot
)
{
function
init
(
plot
)
{
...
@@ -163,12 +163,10 @@ More detail and specific examples can be found in the included HTML file.
...
@@ -163,12 +163,10 @@ More detail and specific examples can be found in the included HTML file.
depth
=
0
;
depth
=
0
;
}
}
for
(
var
i
=
0
;
i
<
obj
.
length
;
++
i
)
for
(
var
i
=
0
;
i
<
obj
.
length
;
++
i
)
{
{
for
(
var
j
=
0
;
j
<
depth
;
j
++
)
{
for
(
var
j
=
0
;
j
<
depth
;
j
++
)
{
msg
+=
"
\
t"
;
msg
+=
"
\
t"
;
}
}
if
(
typeof
obj
[
i
]
==
"object"
)
{
if
(
typeof
obj
[
i
]
==
"object"
)
{
msg
+=
""
+
i
+
":
\n
"
;
msg
+=
""
+
i
+
":
\n
"
;
traverse
(
obj
[
i
],
depth
+
1
);
traverse
(
obj
[
i
],
depth
+
1
);
...
@@ -289,6 +287,7 @@ More detail and specific examples can be found in the included HTML file.
...
@@ -289,6 +287,7 @@ More detail and specific examples can be found in the included HTML file.
angle
:
combined
*
Math
.
PI
*
2
/
total
,
angle
:
combined
*
Math
.
PI
*
2
/
total
,
percent
:
combined
/
total
*
100
percent
:
combined
/
total
*
100
});
});
}
return
newdata
;
return
newdata
;
}
}
...
@@ -640,6 +639,7 @@ More detail and specific examples can be found in the included HTML file.
...
@@ -640,6 +639,7 @@ More detail and specific examples can be found in the included HTML file.
// trigger click or hover event (they send the same parameters so we share their code)
// trigger click or hover event (they send the same parameters so we share their code)
function
triggerClickHoverEvent
(
eventname
,
e
)
{
function
triggerClickHoverEvent
(
eventname
,
e
)
{
var
offset
=
plot
.
offset
();
var
offset
=
plot
.
offset
();
var
canvasX
=
parseInt
(
e
.
pageX
-
offset
.
left
);
var
canvasX
=
parseInt
(
e
.
pageX
-
offset
.
left
);
var
canvasY
=
parseInt
(
e
.
pageY
-
offset
.
top
);
var
canvasY
=
parseInt
(
e
.
pageY
-
offset
.
top
);
...
@@ -749,6 +749,7 @@ More detail and specific examples can be found in the included HTML file.
...
@@ -749,6 +749,7 @@ More detail and specific examples can be found in the included HTML file.
}
// end init (plugin body)
}
// end init (plugin body)
// define pie specific options and their default values
// define pie specific options and their default values
var
options
=
{
var
options
=
{
series
:
{
series
:
{
pie
:
{
pie
:
{
...
...
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