D3: .scaleLinear, .axisBottom: Axis Bottom

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

nick3499
1 min readFeb 28, 2017
  • 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
index.html

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.

--

--

nick3499
nick3499

Written by nick3499

coder of JavaScript and Python

No responses yet