An adaptation of the classic
Observable: selection.join
example that uses Vanilla JavaScript. Green is the enter
selection, black is the update selection, and red is the
exit selection. Demonstrates how to use D3 transitions. It
also demonstrates one way to use setInterval
in a way that
works with hot reloading and various frameworks. See also
d3-rosetta.