Public
Edited
Sep 20, 2022
1 fork
Insert cell
# Earthquakes
Insert cell
map
Insert cell
import {map, data} from "@d3/world-airports"
Insert cell
mydata = d3.json("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_week.geojson")
Insert cell
earthquake = mydata.features.map(d => ({
name: d.properties.place,
longitude: d.geometry.coordinates[0],
latitude: d.geometry.coordinates[1],
mag: d.properties.mag
}))
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more