Public
Edited
Mar 25, 2023
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
geojson = {
const url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson"
const geojson = await d3.json(url);
geojson.features = geojson.features.filter(d => d3.geoDistance([-152, 63], d.geometry.coordinates) < .3)
return geojson;
}
Insert cell
Insert cell
ak_map = {
return Plot.plot({
projection: {
type: "azimuthal-equidistant",
rotate: [152, -63],
domain: ak,
},
width: width / 2,
marks: [
globe,
Plot.geo(chart[2].map(d => d[2]), {r: 1, fill: "#000"}),
],
});
}
Insert cell
Insert cell
d2s = Inputs.button("Deep-to-surface transition", {reduce: viewof chart.deep_to_surface})
Insert cell
all = Inputs.button("All the quakes", {reduce: viewof chart.all_of_them})
Insert cell
Insert cell
import {viewof chart} with {geojson as geojson} from "@pbogden/brush-w-transition"
Insert cell
ak = stateShapes.features.filter(({id}) => id == "02")[0]
Insert cell
import {stateShapes} from "@observablehq/us-geographic-data"
Insert cell
Insert cell
import {world50m} from "@visionscarto/geo"
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more