3 ms·
Anyone else get an error trying to run this slide? (ARRAYS & DATA MANIPULATION) on http://scottcheng.github.com/d3js-101/#/data-manipulation http://scottcheng.g
by wavesounds 14y ago
Anyone else get an error trying to run this slide? (ARRAYS & DATA MANIPULATION) on
http://scottcheng.github.com/d3js-101/#/data-manipulation 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.
- scottcheng 14y agoThat'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.