Skip to main content
100%

Assignment 3 Histogram

✓ Published1🌍 Public
Aahuynh8@dons.usfca.edu
Last edited Feb 13, 2024
Created on Feb 13, 2024

This interactive histogram displays the distribution of Attack stat values across Pokémon from a CSV dataset. Built with p5.js, the visualization queries a remote CSV file via `loadTable()`, then uses a `preload()` function to load and parse the data before rendering. The code manually bins Attack values into ten intervals (0–20, 20–40, etc.) and draws each bar using `rect()` with heights proportional to the counts. The canvas displays grid lines, axis labels, and a title, with the y-axis rotated using `rotate()` to show the count axis vertically.

AI-generated description
MIT Licensed

Similar vizzes