Jacek Dominiak
Jacek Dominiak

Reputation: 877

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.

Upvotes: 9

Views: 2616

Answers (1)

Trevor Dixon
Trevor Dixon

Reputation: 24382

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;
}

Upvotes: 11

Related Questions