D3: Rect Transition Events: Start, End: Delay, Size, Color, Location

Forked script below was adapted from v3 to v4

  • .attrs({}) v4 method contains multiple attribute tuples, and requires d3-selection-multi.v1.min.js plugin, e.g. .attrs({width: 500, height: 200}). Replacing v3’s .attr({}).
  • .on('start' selects start transition event. Replacing v3's .each('start'.
  • .on('end' selects end transition event. Replacing v3’s .each('end'.

Forked v4 script above. Original v3 script below.

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