Skip to main content
100%

A4 Histogram D3

✓ Published0🌍 Public
EEric Yao
Last edited Feb 20, 2024
Created on Feb 19, 2024
Forked from A4 Barchart D3

This histogram shows the distribution of average math SAT scores across US states from 2005 to 2015, with the x-axis spanning score values from 380 to 620 and the y-axis counting the number of state averages per bin. Data is loaded from a CSV file via `d3.csv`, then processed with `d3.histogram()` to create ten bins based on `x.ticks(10)`. The SVG rendering uses `d3.axisBottom` and `d3.axisLeft` for axes, and rectangular bars that highlight orange on hover via CSS. The chart is built with D3 v7.

AI-generated description

Reference: https://d3-graph-gallery.com/graph/barplot_basic.html

Also used chatgpt to implement certain features

MIT Licensed

Similar vizzes