Accepted answer

I think you're almost there - it's just that your d3.nest is incorrect. Your grouping on the ID at the moment, but looking at your expected output that's not needed anywhere.

Change your grouping to use Name:

var databyID = d3.nest()
    .key(function(d) { return d.Name; })

This produced the following which I think is exactly what you want enter image description here

Related Query

More Query from same tag