D3: .scaleLinear, .axisBottom: Axis Bottom

Forked script below was converted from D3.js v3 to v4.

  • d3.scaleLinear() and d3.axisBottom() are D3.js v4 functions
  • .attrs() comes with d3-selection-multi.v1.min.js
  • 0 was clipped intentionally
  • .tickSize() and .tickPadding() were added to the d3.axisBottom() chain
  • axisNodes.selectAll() calls were commented out because v4 ignores them

Forked v4 script above. Original v3 script below.

D3.js 3.5.17 seems to have a similar existence to Python 2.7.13. Maintained to avoid alienating v3 users.