adding margins to pie chart
This commit is contained in:
parent
8ca9001bb4
commit
3b85fd37bb
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue