Skip to main content
100%

Fork of Fork of Final - Earthquakes Linked Views with Brushing on Map

✓ Published0🌍 Public
AAamir Hameed mir
Last edited May 26, 2024
Created on May 26, 2024

This interactive visualization maps earthquakes from the USGS API as colored circles sized by magnitude. A brush tool on the map filters which earthquakes appear in a linked scatter plot, enabling coordinated views of depth, time, and magnitude. The D3 code uses `geoEquirectangular` projections, `d3.brush`, and `d3.scaleOrdinal` to categorize depth into shallow, intermediate, and deep classes. Clicking a circle opens the earthquake’s URL, while tooltips provide detailed information for both map and scatter plot points.

AI-generated description

In the map

  • data from an USGS API
  • circle size related to magnitude value
  • interaction: click circle and direct to a url
  • added color to the circles, according to depth (shallow, intermediate, deep)
  • added brush

In the scatter plot

  • added tooltip

Interaction:

Use a brush tool on the map to select the earthquakes that you want to display on the scatter plot.

MIT Licensed

Similar vizzes