adding margins to pie chart

This commit is contained in:
Shelby Sturgis 2015-02-09 12:17:41 -05:00
parent 8ca9001bb4
commit 3b85fd37bb

View file

@ -58,8 +58,9 @@ define(function (require) {
* @returns {D3.Selection} SVG with paths attached
*/
PieChart.prototype.addPath = function (width, height, svg, slices) {
var margin = 10;
var isDonut = this._attr.isDonut;
var radius = Math.min(width, height) / 2;
var radius = Math.min(width, height) / 2 - margin;
var color = this.handler.data.getPieColorFunc();
var partition = d3.layout.partition()
.sort(null)