score:0

Accepted answer

I've based this example on http://bl.ocks.org/mbostock/3884955

Given that the data you have is already in JSON this example needs some changes. See http://jsfiddle.net/henbox/ae5hhv5L/2/embedded/result/ for my version.

Changes are mostly around manipulating the data. To do this you want to nest the data so that values (date and casecount) sit under each groupname

processeddata = d3.nest()
    .key(function (d) {
        return d.groupName;
    })
    .entries(phonedata);

After that it's mostly a case of changing data accessor names. For more info on nest I always find this page helpful: http://bl.ocks.org/phoebebright/raw/3176159/


Related Query

More Query from same tag