Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Space out part of the pie chart in d3?

How can I space out pie of the chart in nvd3 / d3?

I would like to use pie chart as per example pie chart from http://nvd3.com/livecode/#codemirrorNav

Any help really appriciated.

like image 783
Jacek Dominiak Avatar asked Sep 04 '12 20:09

Jacek Dominiak


1 Answers

Sometimes a thick white stroke on each slice does OK (in fact, that's how they do it on the page you linked to). The problem is that tiny slices will sometimes get covered by the stroke.

.slice {
  stroke: white;
  stroke-width: 3;
}
like image 121
Trevor Dixon Avatar answered Nov 07 '22 10:11

Trevor Dixon