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.
enter()
and exit()
in this post.update()
.