Skip to content

Instantly share code, notes, and snippets.

@hughes
hughes / README.md
Last active August 29, 2015 14:23 — forked from mbostock/.block
d3 pack layout with custom group padding

The padding parameter previously was constant across the layout, and required a second pass of d3_layout_packSiblings.

With this change, it is possible to specify padding on any node, even group nodes. This value is added to the outer radius of the node when packing the nodes

@hughes
hughes / README.md
Last active August 29, 2015 14:23
d3 pack layout with custom group padding, demo 2

The padding parameter previously was constant across the layout, and required a second pass of d3_layout_packSiblings.

With this change, it is possible to specify padding on any node, even group nodes. This value is added to the outer radius of the node when packing the nodes