Ernesto
Ernesto

Reputation: 4017

control width of separation lines in d3 sunburst diagram

I'm using a modified version of this code in an app showing a tree-like structure using a sunburst diagram, and I was wondering if there's anyway to control the width of the thin white lines separating each wedge.

d3 sunburst diagram

There's nothing explicitly set in the code regarding this lines, and a quick look of the documentation of the d3 library regarding this layout (here) does not mention anything about them, or at least I did not find anything about it.

Upvotes: 1

Views: 279

Answers (1)

b0redom
b0redom

Reputation: 387

Its applying the css property style stroke:rgb(255, 255, 255);
The css property to adjust the thickness of the stroke is stroke-width

I will warn you though, the larger your stroke width, the "smaller" your colored block will appear to be.

Upvotes: 1

Related Questions