Published
Edited
Mar 18, 2022
1 fork
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
chinese_graduates = FileAttachment("highedu-china-subjects@2.csv").csv({typed: true})
Insert cell
Insert cell
Insert cell
Insert cell
d3.groupSort(laureates, v => v.length, d => d[countryType])
Insert cell
Insert cell
Insert cell
Insert cell
// laureates.map(d => [new Set(d.affiliations.map(i=>i.country).filter(c=>c!==d.bornCountry)).size, d]).filter(item=>item[0]>1)
Insert cell
Insert cell
countryFlags
Insert cell
Insert cell
Type Markdown, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
// ## Inspiration
// * https://flowingdata.com/2019/12/11/how-job-groups-changed-over-the-past-seven-decades/
// * https://flowingdata.com/2017/09/11/most-female-and-male-occupations-since-1950/
// * https://flowingdata.com/2019/07/10/bachelors-degree-movers/
// * https://flowingdata.com/2016/12/07/fields-of-study-ranked-over-past-few-decades/
Insert cell
Table = Inputs.table // deprecated alias
Insert cell
import {addTooltips} from "@mkfreeman/plot-tooltip"
Insert cell
import {SummaryTable} from "@observablehq/summary-table"
Insert cell
import {swatches as Swatches} from "@d3/color-legend"
Insert cell
import {select} from "@jashkenas/inputs"
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