Skip to main content
100%

Histogram

✓ Published0🌍 Public
AAllen Ho
Last edited Feb 13, 2024
Created on Feb 6, 2024
Forked from HTML Starter

This histogram visualizes the count of video games per genre from a CSV dataset fetched via p5.js’s `loadTable`, limited to the first 50 single-genre entries. Using the Canvas API, it draws colored rectangles for each genre’s frequency, with axis labels and gridlines. An interactive button randomizes the fill color, and hovering over a bar triggers a tooltip displaying the genre and its count, implemented through p5.js’s `mouseX`/`mouseY` and `text` functions.

AI-generated description

This histogram shows the amount of games per genre. The data set has been modified to show only the first 50 games in the csv file that contain only a single genre.

MIT Licensed

Similar vizzes