d3.js: axes examples (scientific, classical) with constant and adjusting subtick counts
D3.js Axes …… ∆ ∞
This is a copy of Ger Hobbelt's examples/axis/axis-classical.html.
The 'classical' axes showcase the augmented d3.axes component in https://github.com/GerHobbelt/d3
To see the same axes (rendered differently as vanilla D3 doesn't support functions for subtick count, etc. in its d3.axis component (at least as per v2.10.0 release),
view:
- same code, with crash protection wrappers, for vanilla D3.js: gist 3605069
- reduced code wuitable for use with vanilla D3.js as is, with crash protection wrappers: gist 3605124
Related gists
- 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