I have created a tree map in D3 having parent and child relationship. I have colored the children based on their parents. I want to add children name as the text for each of the child rectangles.
Not sure how to access the child data in the 2 dimensional array.
Please find the details of my treemap in Github link below: http://bl.ocks.org/geetanjalirana/4cdcfc2887ed93907225
I need to add the child text as highlighted in the example below.
For Instance:-
D = Children: Array[9]
0: Object 1
**Children: Array[10]**
0: object
1: object
2: object
....
9: object
How to access the children data which is in bold?