Gist c22c3354ee89f6f6c8d7c1f9358e6299
✓ Published0🌍 Public
JJustinGOSSES
Last edited Feb 17, 2018
Created on Feb 17, 2018
This visualization compares consumer expenditure patterns across four Midwestern U.S. cities—Chicago, Detroit, Minneapolis–St. Paul, and St. Louis—using data from the Consumer Expenditure Survey. It shows categorical spending differences (e.g., food, housing, transportation) through a horizontal bar chart layout, with each city’s values encoded as bar lengths. The code uses D3.js (d3.scaleBand, d3.scaleLinear) to map categories and values, and d3.axisBottom for the value axis. Data comes from the CSV file `midwest_flatten_3.csv`, which contains income and spending figures per city.
AI-generated description