ICE-8 Map
✓ Published0🌍 Public
This example visualizes average alcohol consumption per U.S. state using a choropleth map, where each state is colored on a red-yellow-green gradient according to its average number of drinks. The map is rendered with D3 v7 and topojson-client, using the `d3.geoAlbersUsa` projection and `d3.geoPath` to draw state boundaries from US Atlas TopoJSON data. Alcohol values from a CSV file are joined to states via `d3.index`, and a sequential color scale (`d3.scaleSequential` with `d3.interpolateRdYlGn`) maps values to colors, with a gradient legend included.
AI-generated descriptionMIT Licensed