D3: .csv .scaleLinear .axisLeft .axisBottom: Scatter Plot with Grid Lines
.scaleLinear()
,.axisLeft()
and.axisBottom()
v4 functions depend upon thed3.v4.min.js
library. Replacing v3’s.scale.linear()
,.svg.axis()
.orient("left")
or.orient("bottom")
..attrs({})
is a v4 setter for multiple attribute tuples which requires thed3-selection-multi.v1.min.js
plugin, e.g..attrs({width, totalWidth, height, totalHeight})
. Replacing v3’s.attr({})
.
Forked v4 script above. Original v3 script below.
D3.js 3.5.17 seems to have an existence similar to Python 2.7.13. Maintained to avoid alienating v3 users.