Click on any arc to zoom in. Click in the center to zoom out.
A sunburst is similar to a treemap, except it uses a radial layout. The root node of the tree is at the center, with leaves on the circumference. The area (or angle, depending on implementation) of each arc corresponds to its value. Sunburst design by John Stasko. Data courtesy Jeff Heer.
I found this code written with poor javascript, meaning function inside a function and again inside a function which is a bad practice.
Here is the reworked code(Still in version 3. Once I learn some skills will rework it in v4)
Additionally it would be good if we could label the parts with text. I am sure there is a way for it...
`/**
* @see http://bl.ocks.org/mbostock/5944371
* @param {Object} window
* @param {Object} d3
*/
(function(window, d3) {
'use strict';