DEV Community

loading...
Cover image for How to create a JavaScript scatter plot (visualizing cat/dog popularity in the US)

How to create a JavaScript scatter plot (visualizing cat/dog popularity in the US)

andreykh1985 profile image andreykh1985 Originally published at anychart.com ・1 min read

A scatter plot is a great way to visualize data. In this chart type, data is represented as points on a Cartesian plane where the X and Y coordinate of each point represents a variable. Scatter charts let you explore the relationship between two variables, detect outliers in the data set, and identify trends. They are among the most commonly used data visualization techniques and a must have for your data visualization development arsenal.

This tutorial teaches how to build your very own interactive scatter plot charts using JavaScript.

Ever wondered whether the population of the United States of America were dog people? And you are just about to find out! To help you learn more about building scatter plots, let's take the Cat vs Dog Popularity in US dataset from Data.world. It contains the percentage of homes with cats and dogs in the United States...

Check out the tutorial here.

Discussion (0)

pic
Editor guide