Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

p5 heatmap

Public visualization

Viewing a saved revision (read-only)

4be9010d21fc4270b591912399221ca3

p5 heatmap

1 star0🌍 Public
AAndrew
Last edited Feb 6, 2024
Created on Feb 6, 2024
Forked from HTML Starter

This visualization displays a heatmap of yearly infection counts for US states from 1970 to 1980. It uses p5.js to render colored squares on a 1000x1000 canvas, with darker reds indicating higher infection numbers. The map includes state labels, year markers, and a color legend. Hovering over any square triggers a tooltip that reveals the exact year, location, and infection count. The data is loaded from a CSV file via the `loadTable` function, with square fill colors computed directly from the numeric infection values.

AI-generated description

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

See also React Starter.