Viewing a saved revision (read-only)
300c7711bd63438a90df635203a8ce27
Histogram
This histogram displays the distribution of unemployment rates across U.S. counties as of August 2016, using data from the Bureau of Labor Statistics. It shows the frequency of counties falling into different rate intervals, with the tallest bars indicating the most common unemployment levels. The visualization uses D3’s `bin` and `scaleLinear` APIs to group the data into 40 bins and map those bins to screen coordinates. Each county’s rate is loaded from a CSV file and cast to a number before being passed to the histogram component, which renders SVG rectangles for each bin.
AI-generated descriptionAn adaptation of the D3 Choropleth Example that uses vanilla JavaScript. Shows Unemployment rate by U.S. county, August 2016.
Some key differences from the original implementation include:
- Uses unidirectional data flow and idempotent rendering
- Supports hot reloading
- Uses the geo-albers-usa-territories projection, which includes all US territories
- Colors missing data red.