javascript - D3 - nest.entries() throws Uncaught TypeError -
i've tried purloin mike's excellent stacked area chart replacing own data, , hell has broken loose in way don't encounter @ level of example adaptation. specifically, throws @ console:
uncaught typeerror: cannot read property '1' of undefined
that's in reference innocuous line implements stack function:
var layers = stack(nest.entries(data));
my data schema matched of example - 1 difference being "date" has 4-digit year, i've accounted
d3.time.format("%m/%d/%y");
i can't figure out why 'nest.entries(data)' coming undefined, or why stack function asking property called "1". assistance appreciated.
attempted chart here: http://bl.ocks.org/wboykinm/10499388
make sure have same date represented each group, this:
date,key,value 1/4/2013,phone,549 1/4/2013,email,402 1/4/2013,url,620 8/4/2013,phone,165 8/4/2013,email,265 8/4/2013,url,52 15/4/2013,phone,300 15/4/2013,email,145 15/4/2013,url,450 ...
Comments
Post a Comment