Commit 77889432 authored by David Schnur's avatar David Schnur

Make the slice total a local variable.

The total is only used within the combine function; it doesn't need to
exist at the top level of the plugin.
parent a1c84203
...@@ -66,7 +66,6 @@ More detail and specific examples can be found in the included HTML file. ...@@ -66,7 +66,6 @@ More detail and specific examples can be found in the included HTML file.
maxRadius = null, maxRadius = null,
centerLeft = null, centerLeft = null,
centerTop = null, centerTop = null,
total = 0,
redraw = true, redraw = true,
redrawAttempts = 10, redrawAttempts = 10,
shrink = 0.95, shrink = 0.95,
...@@ -217,7 +216,8 @@ More detail and specific examples can be found in the included HTML file. ...@@ -217,7 +216,8 @@ More detail and specific examples can be found in the included HTML file.
function combine(data) { function combine(data) {
var combined = 0, var total = 0,
combined = 0,
numCombined = 0, numCombined = 0,
color = options.series.pie.combine.color, color = options.series.pie.combine.color,
newdata = []; newdata = [];
......
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