Skip to content Skip to sidebar Skip to footer

Making Nested Json Javascript

I am trying to make nested JSON for the sunburst diagram however I am having some trouble. As you can see in this fiddle below that the children that share a parent name are not b

Solution 1:

There is d3.nest which makes your live much easier than this.

This is a very helpful tool to get used to nesting: http://bl.ocks.org/shancarter/raw/4748131/

Otherwise read up about it here: http://www.d3noob.org/2014/02/grouping-and-summing-data-using-d3nest.html

Good luck,

Kim

Post a Comment for "Making Nested Json Javascript"