Skip to main content
100%

CS360 A2 dotplot

✓ Published0🌍 Public
EEric Yao
Last edited Feb 6, 2024
Created on Feb 6, 2024
Forked from CS360 A2 Bar Chart

A dot plot compares smoking rates between the United States and China by plotting each country's male and female percentages as blue and red circles. The p5.js sketch loads CSV data from a GitHub Gist, computes axis ranges from the data, and renders labeled axes with percentage ticks. It maps data coordinates to canvas positions to show the relationship between genders for each country. A legend identifies the two countries, while the chart title and axis labels clarify the visualization's purpose.

AI-generated description

Tried to add hover to see the year of each data point, did not work... Would have made the graph's trends more readable.

MIT Licensed

Similar vizzes