Commit 6aa3696e authored by David Schnur's avatar David Schnur

Further style cleanup.

parent 0a601d03
...@@ -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: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment