This post describes how to swap from one
line chart input dataset to another with a
smooth transition with d3.js. It aims to understand how to build an
update() function, a concept that is used in many d3.js
charts. This example works with d3.js v4 and
v6
enter() and
exit() in this post.
update().