d3-exploder
Make your d3 maps explode
A tiny d3 extension which lets you turn your maps into other types of charts!
Another example brought up by a user
Installation
d3-exploder
can be installed via npm
npm install d3-exploder
Note:
d3-exploder >= 2.0.0 supports d3 v4. For use with d3 v3, install version 1 of d3-exploder.
Usage
;; // Create an exploder functionvar exploder = size { // function new size of features in pixels } ; // Call exploder, optionally in a transition var width = 960 height = 500 centered; var projection = d3; var path = d3 ; var svg = d3 ; var g = svg; d3;