Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Histogram D3

Public visualization

Viewing a saved revision (read-only)

9785055f5e3048fe98a7963e4b4b2db0

Histogram D3

0 stars0🌍 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

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.