D3 nesting and object traversal
问题 i have a json as shared below and I am trying to nest the data prior to visualization. I wish to plot under gov and non-gov how every vendor is distributed for high and low projects so trying to create a json object like [{v1: {Gov: {high:3, low:2}, {Non-Gov: {high:12, low:1}}}, {v2:{Gov: {high:3, low:2}, {Non-Gov: {high:12, low:1}}}, ...] I am able to nest the data but unable to get the respective counts. Any guidance is appreciated. Apologies if the question construct is vague. [ { "vendor"