🌍 Public
Viewing a saved revision (read-only)
ea8622805d7c4e6d9c3638a6267c8446
Chicago Energy Usage - Histogram
This example visualizes average energy consumption per Chicago census tract using a histogram with equal-width population bins. The p5.js sketch loads energy-usage data from a CSV file through the `loadTable` API, binning records by total population and computing the average kilowatt-hours per bin. Rendered on a 900×700 canvas, the chart displays bars colored in blue, a dot overlay at each bin’s average, and axes with configurable tick counts. The custom `linspace` function generates bin ranges, while CSS and HTML handle the page layout.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.