Skip to main content
100%

Fork of Histogram with D3

✓ Published0🌍 Public
Yyuli19991001
Last edited Nov 17, 2022
Created on Nov 17, 2022
Forked from Histogram with D3

This histogram displays birth rates per 1000 for different age groups in California for 2016, using a bar chart with an interactive tooltip that reveals the age group on hover. Built with D3 v7, it loads CSV data via `d3.csv`, maps age groups to a `d3.scaleBand` and rates to a `d3.scaleLinear`, and renders the bars as SVG rectangles. Tooltips are appended and removed dynamically using `svg.append("text")` and `d3.select("#t1").remove()` on mouseenter and mouseleave events.

AI-generated description
MIT Licensed

Similar vizzes