🌍 Public
Viewing a saved revision (read-only)
0b15174184c942948296da5357355690
P5 Bar Chart
A P5 bar chart visualizes natural gas prices in California over time, with bars representing prices for each year sampled from an external CSV dataset. The chart highlights that 2005 had the highest price, with an annotation noting a connection to the recession. Using p5.js, the code loads data via `loadTable`, renders rectangles with `rect()`, and displays axis labels and annotations through `text()`. A loop iterates through rows, scaling price values to bar heights, while grid lines are drawn using `line()`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.