Skip to main content
100%

A2 Heat Map

✓ Published1🌍 Public
Nnathanjmuljadi@gmail.com
Last edited Feb 3, 2025
Created on Feb 3, 2025
Forked from A2 Dot Chart

This heat map visualizes the frequency of police shootings across U.S. states, using a red-to-blue color scale where higher counts appear bluer. The p5.js sketch loads CSV data from a GitHub gist via `loadTable`, counts incidents per state, and renders colored squares for each state along a vertical axis with state labels. The color mapping uses `map` and `lerpColor` to interpolate between red and blue based on the normalized count values.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes