I have json data that looks like this:
[{"DateText":"Apr 2016","Agent":"wade","Talk":2},
{"DateText":"Apr 2016","Agent":"winop4","Talk":0},
{"DateText":"Apr 2016","Agent":"amy","Talk":2},
{"DateText":"Apr 2016","Agent":"GARY","Talk":0},
{"DateText":"Apr 2016","Agent":"kmahoney","Talk":0}]
I need it to look like this for d3:
["DateText":"Apr 2016", "Agent":"wade","Talk":2}, "Agent":"winop4","Talk":0},
"Agent":"amy","Talk":2}, "Agent":"GARY","Talk":0},
"Agent":"kmahoney","Talk":0}
"DateText":"May 2016", "Agent":"wade","Talk":5},
"Agent":"winop4","Talk":200}, "Agent":"amy","Talk":400},
"Agent":"GARY","Talk":900}, "Agent":"kmahoney","Talk":3}]
I would like to do this in JavaScript or even in d3. can anyone offer examples of good ways to do this?