D3 treemap json data format
问题 I'm new to d3js. I've gone through several examples of the treemap visualization and noticed that the data has the same hierarchical structure: { "name": "flare", "children": [ ... ] ... } But what if I have an array of objects with same set of properties without nesting: [ { "CourseID": "15.010B", "Subject": "15.01", "Section": "B", "Department": "Managerial Economics", "Professor": "Doyle", ... }, { "CourseID": "15.010B", "Subject": "15.01", "Section": "B", ... }, ... ] Should I make it