Skip to main content
100%

Assignment 2: Dot Plot (working!)

✓ Published0🌍 Public
Aamrubal
Last edited Feb 11, 2022
Created on Feb 8, 2022
Forked from HTML Starter

This dot plot displays the total number of new marijuana users aged 18–25 for each U.S. state and the District of Columbia. Each state is listed vertically with its corresponding value plotted as a point along a horizontal scale. The visualization uses the p5.js library to load a CSV dataset, render the canvas, and draw axes, gridlines, labels, and data points. The data source is a remote CSV file containing state names and user totals.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Edited the CSV file to only contain two columns: States and Total Marijuana New Users Aged 18-25. I also reduced the States column in the orginial drugs.csv to only contain the first 50 instances of the state + DC.

MIT Licensed

Similar vizzes