Skip to main content
100%

Assignment #3 Histogram

✓ Published1🌍 Public
Mmhzahdeh@dons.usfca.edu
Last edited Feb 10, 2025
Created on Feb 9, 2025
Forked from p5.js.histogram

This histogram displays the distribution of cylinder counts in a dataset of cars, with the x-axis showing cylinder types and the y-axis showing the number of cars. The visualization uses p5.js to load a CSV file from a URL via `loadTable`, then counts occurrences per cylinder type in the `setup()` function. Bars are drawn in `draw()` using `rect()` calls, with heights scaled by count and positioned along a manually drawn coordinate system. The data originates from the Corgis cars dataset, specifically the fuel information column.

AI-generated description

'https://gist.githubusercontent.com/eunicetu16/2192dfd3f280dc9d0b96bb83c89dbd7b/raw/1f5e5c08cb40178bf14ab08586c74666da072d44/city_mpg.csv'

The original dataset is from 'https://corgis-edu.github.io/corgis/csv/cars/', and take only 'Fuel Information.City mpg' columns and group them into 8 groups. And have the counts for each group.

MIT Licensed

Similar vizzes