Skip to main content
100%

CS360 A10

✓ Published0🌍 Public
Lleoframba
Last edited Apr 25, 2022
Created on Apr 25, 2022
Forked from HTML Starter

A choropleth map of the United States visualizes the average monthly transportation cost by state, with a color scale from light yellow to dark red. The map is rendered using SVG paths projected with `d3.geoAlbersUsa` and `d3.geoPath`, with state boundaries drawn as black strokes. Fill colors are assigned based on the `transportationCost` field from the `StateExp.csv` dataset, mapped through a linear color scale. A horizontal `d3.legendColor` legend displays the cost range, and a hover interaction logs the corresponding state ID to the console.

AI-generated description
MIT Licensed

Similar vizzes