D3: SVG Line Generator: d3.line()

Forked script below adapts d3.js v4 to v3

nick3499
1 min readMar 8, 2017
D3.js SVG Line Generator
  • .attrs({}) v4 method contains multiple attribute tuples and requires d3-selection-multi.v1.min.js plugin. Replacing v3’s .attr({}).
  • d3.line() object replaces d3.svg.line().
  • fill: 'none' attribute exposes the line path.

Forked v4 script above. Original v3 script below.

D3.js 3.5.17 seems to have an existence similar to Python 2.7.14. Maintained to avoid alienating v3 users.

--

--

nick3499
nick3499

Written by nick3499

coder of JavaScript and Python

No responses yet