Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

P5 CSV Loader

Public visualization

P5 CSV Loader

0 stars2🌍 Public
MMiaya South
Last edited Feb 1, 2025
Created on Jan 30, 2025

This example visualizes the percentage of female smokers from a CSV dataset loaded from a GitHub gist. The p5.js `loadTable` API fetches the data in `setup()`, and `getColumn` extracts the numeric values for rendering. Each bar’s width maps linearly to the percentage via `rect`, using a lavender fill on a gray canvas. The code demonstrates a straightforward bar-chart construction with p5.js’s drawing functions, showing the distribution of values across records.

AI-generated description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed