D3.js streamgraph example - generating correct area function values
I'm new to d3js and trying to adapt the streamgraph example from here http://bl.ocks.org/mbostock/4060954 : ...to work with my own data that tracks visitors to an art exhibition from different places (online, guestbook, museum). I've made some progress and I think my data's in the right format but I'm getting some really wonky final y values and my example isn't showing anything. My data starts as csv: index,date,venue,num_visitors 0,4/6/2013,online,3844 0,4/6/2013,museum,789 0,4/6/2013,guestbook,20 1,4/7/2013,online,217 1,4/7/2013,museum,718 1,4/7/2013,guestbook,20 And then I nest it to