Public
Edited
Feb 14, 2023
Insert cell
Insert cell
Insert cell
Insert cell
JSON.stringify(metadata[0], undefined, 2)
Insert cell
metadata = fetch(
"https://kudaf-core.paas2.uninett.no/api/v1/catalog/datasets/"
).then((d) => d.json())
Insert cell
metadata.map((d) => [d.measureVariable.label, unitType(d), target(d)])
Insert cell
Insert cell
unitType = (d) => {
return d.identifierVariables.map((d) => d.keyType.name);
}
Insert cell
target = (d) => {
if (!d.measureVariable.hasOwnProperty("keyType")) return null;
return d.measureVariable.keyType.name;
}
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