This post describes how to build a connected scatter plot with multiple data series in d3.js. It follows the previous basic connected scatter plot and also describes how to add a legend in d3.js.
enter()
the reformatted dataset. Once in a group, we have to enter()
the list of x and y coordinates.datum()
to extract the position of the last data point.