A3 Histogram
✓ Published0🌍 Public
This example visualizes the total goals scored per game week in a soccer season as a histogram. It uses the p5.js library to create a canvas and render bars representing aggregated goal counts, with mouse hover interactions displaying the exact value per bar. The data is loaded from a CSV file via `loadTable` in the `preload` function, and the bars are drawn using custom drawing logic that maps goal totals to vertical heights.
AI-generated descriptionA blank slate starting point showing the "Hello World" for the VizHub V3 Runtime Environment, which supports continuous hot reloading with interactive widgets.
- There is no
index.html- that's what triggers the V3 Runtime - The entry point is the
mainfunction exported fromindex.js - The
mainfunction takes an argumentcontainer, a DIV
Full course playlist: YouTube: Constructing Visualization 2024.
MIT Licensed