Public
Edited
Jul 6, 2024
Paused
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
lsoaData = turf.featureCollection(
attrJoinGeoJSON(cambridge_lsoa_boundary_2011, [
normalized_data
]).features.filter(
(d) => !d.properties["LSOA11NM"].includes("South Cambridgeshire")
)
)
Insert cell
Insert cell
griddedGeoJSON = spatialJoin(lsoaData, grids_100m)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
grids_100m = {
var extent = turf.bbox(cambridge_boundary);
var cellSide = 100;
var options = {
units: "meters",
mask: turf.multiPolygon(cambridge_boundary.features[0].geometry.coordinates)
};

var grid = turf.pointGrid(extent, cellSide, options);

// Add lat and long attributes to each point
turf.featureEach(grid, (feature) => {
const coords = feature.geometry.coordinates;
feature.properties.lat = coords[1];
feature.properties.long = coords[0];
});

return grid;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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