Values returning as NaN after nesting

Viewed 102

I'm having trouble nesting my data. I get my count as NaN when i do the following:

  var sumstat = d3.nest()
.key(function(d) {; return d.region;})
.key(function(d) {return +d.year})
.rollup(function(d) {return d.count;})
.entries(data);

This is the output I get on my console:

enter image description here

I'm not sure how I can capture the count. Any help please?

0 Answers
Related