Skip to main content
100%

CSV with P5

✓ Published0🌍 Public
CCurran Kelleher
Last edited Jan 31, 2024
Created on Jan 31, 2024
Forked from P5.js Starter

This example demonstrates one approach to loading and visualizing CSV data with P5.js. It renders a bar chart of car fuel economy values from the provided `cars.csv` dataset, drawing one rectangle per car with a width proportional to its miles-per-gallon rating. The sketch parses the relevant CSV column into numbers and uses P5’s `setup` and `draw` functions to render the static visualization, relying on the `createCanvas`, `rect`, `noStroke`, and `noLoop` APIs.

AI-generated description

Inspired by P5 CSV Loader by Alark Joshi

A demonstration of one way to load and use CSV data with P5.js.

MIT Licensed

Similar vizzes