Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Histogram for Assignment 3

Public visualization

Histogram for Assignment 3

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed