Skip to main content
100%

Fork of P5 CSV Loader

✓ Published0🌍 Public
MMiaya South
Last edited Feb 1, 2025
Created on Feb 1, 2025
Forked from P5 CSV Loader

This example visualizes smoking rates by gender as a simple bar chart, where each bar’s width corresponds to the female percentage from a CSV file loaded from a GitHub gist. The p5.js `loadTable` function fetches the data in `setup()`, and `table.getColumn()` extracts the `Data.Percentage.Female` column for rendering. Using the p5.js Canvas API, it draws 9.5-pixel-high rectangles in a loop over the dataset, with a light purple fill on a gray background. The sketch is embedded in an HTML page that imports p5.js from a CDN.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes