Skip to main content
100%

A4 Heat Map in D3

✓ Published1🌍 Public
Nnathanjmuljadi@gmail.com
Last edited Feb 17, 2025
Created on Feb 16, 2025
Forked from A2 Heat Map

This heat map displays the number of police shootings across 20 US cities, using a single row of rectangles colored from white to red to represent low to high incident counts. Built with D3 v7 and React, it reads CSV data from a GitHub gist and uses `d3.rollup` for aggregation, `d3.scaleBand` for horizontal positioning, and `d3.scaleLinear` for the color mapping. The visualization includes a rotated x-axis with city labels and renders entirely as SVG.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes