Public
Edited
Sep 20, 2022
7 forks
1 star
Insert cell
Insert cell
mymap
Insert cell
mydata
Insert cell
import {data as airports} from "@d3/world-airports"
Insert cell
airports
Insert cell
import {map as mymap}
with {earthquakes as data}
from "@d3/world-airports"
Insert cell
mydata = d3.json("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.geojson")
Insert cell
earthquakes = mydata.features.map(d => ({
name: d.properties.place,
longitude: d.geometry.coordinates[0],
latitude: d.geometry.coordinates[1],
mag: d.properties.mag
}))
Insert cell
d3.select(mymap).selectAll("circle").nodes()
Insert cell
d3.select(mymap).selectAll("circle")
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