D3: .axisLeft, .scaleLinear: Bar Graph with Left Axis
.axisLeft
and.scaleLinear
are v4 functions which require the.v4.min.js
library..attrs({})
is a v4 setter which contains multiple attribute tuples and requires thed3-selection-multi.v1.min.js
plugin, e.g..attrs({width: totalWidth, height: totalHeight})
. Replacing v3’s.attr({})
setter containing multiple tuples.
Adapted 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.