sunburst
For a given tree builds an SVG based SunBurst diagram.
See the demo images here: https://github.com/anvaka/sunburst/blob/master/demo/dom/README.md
Usage
npm install sunburst
This will render a simple sunburst chart:
Influence the segment size
By default segment size is determined by the number of children, so it can
neatly fit the items in the graph. If you want to visualize something like a
filesystem, which has hierarchy and individual weight, you can set a weight
property on each leaf node to influence the percentage.
For instance, the above example could be rewritten using weight
:
license
MIT