🌍 Public
Viewing a saved revision (read-only)
4c47cc5f5ff64bc886b72e39e753fa23
Fork of CS 360 A2 bar chart
AAlark Joshi
Last edited Sep 5, 2022
Created on Sep 5, 2022
This bar chart visualizes the distribution of chess game outcomes from a CSV dataset loaded via p5.js’s `loadTable`. It shows counts for four victory statuses—mate, resign, draw, and out of time—with bars drawn using p5.js `rect` calls on a 500×500 canvas. The code iterates through the table’s rows in `setup()` to tally occurrences, then renders vertical bars in `draw()`, including a small decorative ellipse. The data is sourced from a GitHub-hosted CSV file, and the visualization uses only p5.js core APIs for loading and drawing.
AI-generated description