Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

CS360 A2 dotplot

Public visualization

Viewing a saved revision (read-only)

2f87ffde2b5845c58f32c7e2300ec0a3

CS360 A2 dotplot

0 stars0🌍 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.