Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart with D3

Public visualization

Viewing a saved revision (read-only)

790fe8922573446f99a9ca6adf74d914

Making a Bar Chart with D3

0 stars0🌍 Public
AAloysius
Last edited Feb 24, 2020
Created on Feb 24, 2020

This horizontal bar chart displays counts of different housing situations, from rough sleeping to private housing, using a CSV data source. The visualization uses D3 v5 with SVG rendering, employing `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft`/`axisBottom` for the axes. Data loads asynchronously via `csv`, then binds to rectangles with heights set by `yScale.bandwidth()` and widths proportional to each count, with maroon fills.

AI-generated description