Public
Edited
Aug 12, 2024
1 fork
Importers
Insert cell
Insert cell
Insert cell
API_IT@1.NET.USER.ZS_DS2_en_csv_v2_2789860.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
dataFolded = aq
.from(dataPivoted)
.fold(aq.not(["Name", "Code"]), { as: ["Year", "Proportion"] })
.derive({ Proportion: (d) => d["Proportion"] / 100 || undefined })
Insert cell
dataFolded
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
data
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
import { countries110m as countries } from "@visionscarto/geo"
Insert cell
import { fixCode, codeToName } from "@huw/iso-3166-1"
Insert cell
geo = ({
...countries,
features: countries.features.map((d1) => ({
...d1,
properties: {
...dataLatest.find((d2) => d2["Code"] === fixCode(d1.properties.a3)),
Name: codeToName[fixCode(d1.properties.a3)]
}
}))
})
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