Skip to main content
100%

D3 DataBinding

✓ Published0🌍 Public
663anp3ca
Last edited Aug 29, 2018
Created on Aug 29, 2018

The example maps U.S. adult obesity rates from CDC 2008 data by projecting state boundaries and scaling each state’s area according to its value. It uses D3 v5 with `d3.geo.path()` to render TopoJSON features, applying a centroid-based transform that proportionally enlarges states with higher obesity ratios while adjusting stroke width inversely. The visualization appears twice on the page, with the second instance likely reusing the same logic. Data is embedded as an array of per-state values, and the map relies on TopoJSON’s `topojson.feature` to extract geometries.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes