Skip to main content
100%

Heat Map

✓ Published0🌍 Public
PPranay Matalia
Last edited Feb 8, 2022
Created on Feb 8, 2022
Forked from HTML Starter

This heat map visualizes the total expenditure of several U.S. states over time, using pink intensity to indicate higher spending amounts. It plots a grid where each cell's color corresponds to a specific state-year combination, with darker pink representing greater expenditure. The visualization is built using the p5.js library, which handles the canvas, drawing, and color fills. Data is loaded from a CSV file via the `loadTable` function, with state names and years rendered as text labels alongside the grid. The map reveals that most states show increasing expenses over recent years, while West Virginia's spending initially declined before rising again.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes