Skip to main content
100%

Class 4

✓ Published0🌍 Public
MMTClass
Last edited Mar 15, 2017
Created on Mar 15, 2017

This example displays a map of the United States using D3 v4 and topojson, with a second layer of earthquake points from the USGS live feed. The map is rendered as SVG paths via the `d3.geoPath` and `d3.geoAlbersUsa` projections, while quake locations are drawn as crimson paths. A mouseover function uses `projection.invert` and `d3.mouse` to display the geographic coordinates of the cursor. Two separate `<g>` elements separate the state and earthquake layers.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes