Skip to main content
100%

Bar Graph - New York Homeless Population (2009-2012)

✓ Published11🌍 Public
JJHamron
Last edited Mar 18, 2021
Created on Mar 9, 2021

This example shows the unsheltered homeless population in New York across five boroughs, surface totals, subways, and total counts for each year from 2009 to 2012, using a grouped bar chart. The visualization uses d3.scaleBand for the area and year groupings, d3.scaleLinear for the population axis, and d3.scaleOrdinal with categorical colors to differentiate years. Bars are rendered as SVG rectangles, with axes drawn via d3.axisLeft and d3.axisBottom, and a legend is manually constructed using appended SVG elements. Data is loaded from a CSV file using d3.csv.

AI-generated description

There wasn't a lot of data so I just found ways to display the entire dataset for both.

MIT Licensed

Similar vizzes