News for hackers. Stuff that matters.
Re:D3.js 101 - Technical Intro by wavesounds on Monday February 04, 2013 @05:09PM (#5167506)
Anyone else get an error trying to run this slide? (ARRAYS & DATA MANIPULATION) on http://scottcheng.github.com/d3js-101/#/data-manipulation

I don't understand whats going on here, what does array[, accessor] and [start, ]stop[, step] mean? I get an error "SyntaxError: Unexpected token ," which I tend to agree with.

Re:D3.js 101 - Technical Intro by scottcheng on Tuesday February 05, 2013 @01:10AM (#5169434)
That's just API spec, not syntactically correct JavaScript... The parameters in [] are optional. I.e. you can pass only one array to d3.max, or pass an array and an accessor. Similar with the range API.