Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3 histogram

Public visualization

Viewing a saved revision (read-only)

0449f492544a4da8a4b18754a0f28f5c

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 health histogram in D3

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

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