Unlisted
Edited
Nov 2
Fork of GenderStats
Importers
3 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
table_instanceof.view()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
get_labels = (qid, lang = "en" ) => {
return fetch(wdk.getEntities({ids: qid, language: lang}))
.then(response => response.json())
.then(wdk.parse.wb.entities)
.then(out => Object.values(out).map(d => d.labels[lang]))
.then(out => aq.table({qid: qid, label: out}))
}
Insert cell
get_labels(["Q100", "Q200", "Q300", "Q400", "Q500", "Q600", "Q700", "Q800", "Q900"])
.then(d => d.view())
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