Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

p5 heatmap

Public visualization

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 heatmap of Yearly Infections Count for US States 1970-1980.

BTW: The data was simplified to help with creating this visualization.

Link to original dataset: https://corgis-edu.github.io/corgis/csv/health/

Comments

Sign in to join the discussion.

MIT Licensed