Skip to main content
100%

Histogram D3

✓ Published0🌍 Public
AAllen Ho
Last edited Feb 21, 2024
Created on Feb 20, 2024
Forked from HTML Starter

This histogram displays the distribution of average daily temperatures recorded throughout 2016, with bars colored green that turn red on hover. Built with D3 v6, the visualization loads CSV data via `d3.csv`, computes bin counts using `d3.histogram()`, and scales the axes with `d3.scaleLinear()`. The SVG rendering includes axis generators (`d3.axisBottom` and `d3.axisLeft`), interactive tooltips via appended `title` elements, and explicit margins for layout. The code demonstrates a straightforward binning workflow from raw weather data to a readable chart.

AI-generated description
MIT Licensed

Similar vizzes