Public
Edited
Sep 19, 2024
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
deep = sample.filter(d => d.depth > 300)
Insert cell
Insert cell
sample.orderby("mag").view(10)
Insert cell
Insert cell
Insert cell
scatterPlot = Plot.dot(sample, {x: "longitude", y: "latitude", stroke: "depthBin"}).plot()
Insert cell
Insert cell
height = {
const [[x0, y0], [x1, y1]] = d3.geoPath(projection.fitWidth(width, outline)).bounds(outline);
const dy = Math.ceil(y1 - y0), l = Math.min(Math.ceil(x1 - x0), dy);
projection.scale(projection.scale() * (l - 1) / l).precision(0.2);
return dy;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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