Skip to main content
100%

Gist 9e143987ca94c3ea3cbbcd28943d7096

✓ Published0🌍 Public
JJustinGOSSES
Last edited Feb 17, 2018
Created on Feb 17, 2018

This visualization compares consumer expenditure patterns across four Midwest U.S. cities using a force-directed network layout. The code employs `d3.forceSimulation` to arrange nodes by category and city, with `d3.geoPath` absent, instead relying on SVG circles and lines to encode spending amounts. Data comes from a flattened CSV (midwest_flatten_3.csv) listing income and expense categories like housing, food, and transportation. Each city’s values are shown as labeled clusters, with node size and link thickness reflecting dollar figures, rendered via D3’s `enter`/`update` selections and `transition.attrTween` for smooth positioning.

AI-generated description

Similar vizzes