Skip to main content
100%

p5.js.histogram

✓ Published2🌍 Public
EEunice Tu
Last edited Feb 8, 2024
Created on Feb 7, 2024

This visualization shows a histogram of city MPG values for a sample of cars, displaying the count of vehicles across eight MPG bins. The p5.js sketch loads pre-aggregated data from a CSV file hosted on GitHub, then renders bars on an 800x800 canvas using the `rect()` API. The chart includes labeled axes, gridlines at 200-count intervals, and a title, with data sourced from the CORGIS cars dataset. The bars are drawn in blue against a light gray background, with the y-axis representing counts and the x-axis displaying MPG values.

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