Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment 3 Histogram

Public visualization

Viewing a saved revision (read-only)

1383c81dc0e748b7a158c22e766a4581

Assignment 3 Histogram

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