class 5 - states
✓ Published0🌍 Public
MMTClass
Last edited Mar 9, 2017
Created on Mar 9, 2017
This example displays a map of United States state boundaries rendered in SVG using d3.geoPath with the d3.geoAlbersUsa projection. It overlays earthquake locations from the USGS live GeoJSON feed, with earthquakes plotted as crimson paths on the map. The code uses topojson to convert state topology data and d3.json to load both the state boundaries and earthquake data. A legend is included, and the visualization also shows a coordinate readout that updates on mousemove events, revealing the current latitude and longitude under the cursor.
AI-generated description