Creating a scatterplot chart

A scatterplot or scattergraph is another common type of diagram used to display data points on Cartesian coordinates with two different variables. Scatterplot is especially useful when you're exploring the problem of spreading, clustering, and classification. In this recipe, you will learn how to implement a multi-series scatterplot chart in D3.

Getting ready

Open your local copy of the following file in your web browser:

How to do it...

A scatterplot is another chart that uses Cartesian coordinates. Thus, a large part of its implementation is very similar to the charts we introduced so far; and therefore, the code concerning ...

Get Data Visualization with D3 4.x Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.