D3: .axisLeft, .scaleLinear: Axis Left

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

nick3499
1 min readMar 1, 2017
  • .scaleLinear() and d3.axisLeft() are v4 functions which require the d3.v4.min.js library.
  • .attrs({}) is a v4 setter containing multiple attribute tuples, e.g. .attrs({width: width, height: height}).
  • axisNodes.selectAll() calls are ignored by v4, so they were removed.

Adapted script above is based on v4, while the original script below is based on v3.

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

--

--

nick3499
nick3499

Written by nick3499

coder of JavaScript and Python

No responses yet