Assignment #3 Histogram
✓ Published1🌍 Public
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 descriptionThe 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