Public
Edited
Oct 25, 2023
3 forks
Insert cell
Insert cell
Insert cell
Plot.plot({width:1200,height:1200,
projection: {type: "orthographic",rotate: [80, -34], domain:circle},
r: {transform: (d) => Math.pow(10, d)}, // convert Richter to amplitude
style: "overflow: visible;", // allow dots to escape
marks: [
Plot.geo(nyc_zips, {fill: "currentColor", fillOpacity: 0.2, type:"md"}),
Plot.sphere(),
Plot.dot(dgi.features, {x: (d) => d.geometry.coordinates[0], y: (d) => d.geometry.coordinates[1], r: .3, stroke: "red", fill: "red", fillOpacity: 0.2})
]
})
Insert cell
Insert cell
circle = d3.geoCircle().center([-74, 40.7]).radius(zoom)()
Insert cell
world = FileAttachment("countries-110m.json").json()
Insert cell
land = topojson.feature(world, world.objects.land)
Insert cell
earthquakes = d3.json("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.geojson").then(d => d.features.map(f => {
const c = d3.geoCentroid(f);
return {magnitude: f.properties.mag, longitude: c[0], latitude: c[1]};
}))
Insert cell
dgi = FileAttachment("DEP Green Infrastructure.geojson").json()
Insert cell
Insert cell
zipdems = FileAttachment("zipdems.csv").csv()
Insert cell
zips_combined = {

var geo = nyc_zips
var data = deminfo
for (let i = 0; i < geo.length; i++) {
var lineName = Number(geo[i].properties.ZIPCODE)

for (let k = 0; k < data.length; k++) {
var dataName =
}
}



}
Insert cell
Insert cell
deminfo = d3.csv(demlink,d3.autoType)
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