D3.js Axes …… ∆ ∞
The same examples as in this gist, but now tweaked to provide the subticks where possible when using d3.js v2.10.0; this means that any functions passed in as arguments to provide a flexible subtick count, size, or otherwise, are reduced to explicit numbers as v2.10.0 vanilla D3 doesn’t support functions as parameters to d3.axis methods.
- gist 3605035: a series of linear axes with varying degress of sophistication, using the advanced d3.axis component
- gist 3605069: same code, with crash protection wrappers, for vanilla D3.js (use to see how many of these vanilla D3.js supports today)
- gist 3605124: reduced code suitable for use with vanilla D3.js v2.10 as is, with crash protection wrappers