Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3 histogram

Public visualization

Viewing a saved revision (read-only)

4674d3992c364d27acd9e0025f0775e8

d3 histogram

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

This visualization shows the distribution of yearly infection counts across US states from 1970 to 1980, using a histogram. The code loads CSV data from a GitHub gist, computes bins with `d3.histogram`, and renders rectangles with `d3.scaleLinear` for axes. Hovering over a bar reveals a tooltip with the bin range and count. The SVG chart displays maroon bars that turn crimson on interaction, with clear axis labels and a title.

AI-generated description

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

See also React Starter.