Skip to main content
100%

Histogram for Assignment 3

✓ Published1🌍 Public
Vvishusikka
Last edited Feb 15, 2022
Created on Feb 15, 2022
Forked from P5js Dotplot

This visualization displays a histogram of average city miles per gallon (mpg) for various car makes and models from 2009 to 2012, with bar heights representing the count of vehicles at each mpg value. Built with p5.js, the sketch loads a CSV file containing mpg and count data, then renders the bars using the `rect()` function, scaling values via a custom `scale()` helper. The code draws grid lines, axis labels, and annotated data values directly on the canvas, with a title and rotated y-axis label for clarity.

AI-generated description
MIT Licensed

Similar vizzes