Public
Edited
Apr 4
1 star
Insert cell
Insert cell
Insert cell
Type HTML, then Shift-Enter. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data1 = geo.table(world)
Insert cell
Insert cell
Insert cell
geo1 = geo.derive(world, { key: "gdppc", value: "gdp/pop*1000" })
Insert cell
Insert cell
Insert cell
Insert cell
geo2 = geo.filter(world, { func: "pop >= 100000" })
Insert cell
Insert cell
Insert cell
Insert cell
geo3 = geo.head(world, {
field: "gdp", // a colname (string)
nb: 5 // default:10. Number of features to get. Here, the 5 richest countries.
})
Insert cell
Insert cell
Insert cell
Insert cell
geo7 = geo.tail(world, {
field: "gdp", // a colname (string)
nb: 5 // default:10. Number of features to get. Here, the 5 least wealthy countries
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
geo = require("geotoolbox@3")
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