CS360 A2 dotplot
✓ Published0🌍 Public
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 descriptionTried 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