Commit 1cd2cd94 authored by David Schnur's avatar David Schnur

Merge pull request #918 from jtward/patch-1

Change evaluation order for calculating percentage.
parents d7c58b59 f6198f5d
......@@ -267,7 +267,7 @@ More detail and specific examples can be found in the included HTML file.
color: data[i].color,
label: data[i].label,
angle: data[i].data[0][1] * Math.PI * 2 / total,
percent: data[i].data[0][1] / total * 100
percent: data[i].data[0][1] / (total / 100)
});
}
}
......@@ -278,7 +278,7 @@ More detail and specific examples can be found in the included HTML file.
color: color,
label: options.series.pie.combine.label,
angle: combined * Math.PI * 2 / total,
percent: combined / total * 100
percent: combined / (total / 100)
});
}
......
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