Ver4 Earthquakes (past 30 days)
✓ Published0🌍 Public
This visualization displays earthquakes from the past 30 days on an interactive world map, with circle size representing magnitude. Circle color encodes depth category: red for shallow (less than 70km), green for intermediate, and blue for deep (300km or more). Users can zoom and pan using d3.zoom(), and clicking any circle opens the corresponding USGS earthquake report. The map uses d3.geoEquirectangular and d3.geoPath to render countries from topojson data and tectonic plate boundaries, while earthquake data is fetched live from the USGS API.
AI-generated descriptionPrevious
- use data from an API
- circle size related to magnitude value
- interaction: click circle and direct to a url
Now
- added color to the circles, according to depth (shallow, intermediate, deep)
- added interaction: zooming and panning (using d3.zoom())
MIT Licensed