D3: scaleOrdinal, scaleLinear, schemeCategory10, axisLeft, axisBottom: Bubble Plot of World Bank Data

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

nick3499
1 min readMar 5, 2017
D3.js Bubble Plot of World Bank Data
  • .axisLeft(), .axisBottom(), .scaleLinear() and .scaleOrdinal(d3.schemeCategory10) are v4 functions which require the d3.v4.min.js library.
  • .attrs({}) is a v4 setter for multiple attribute tuples which requires the d3-selection-multi.v1.min.js plugin. Replacing .attr({}).

Forked v4 script above. Original v3 script below.

D3.js 3.5.17 seems to have a similar existence to Python 2.7.15. Maintained to avoid alienating v3 users.

--

--

nick3499
nick3499

Written by nick3499

coder of JavaScript and Python

No responses yet