This post describes how to build a connected scatter plot with a dropdown button to select group in d3.js. It follows the previous basic connected scatter plot. This example works with d3.js v4
and v6
update()
function is created. It smoothly transform the chart with the value of another columnselect
button is changed.