Public
Edited
Apr 23, 2023
1 fork
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Inputs.table(aiddata)
Insert cell
Insert cell
Insert cell
top_20_donors = sorted_donors.slice(0, 20).map(a => a[0])
Insert cell
Insert cell
top_10_recipients = sorted_recipients.slice(0, 10).map(a => a[0])
Insert cell
filtered_data = aiddata.filter(a => top_20_donors.includes(a.donor) && top_10_recipients.includes(a.recipient))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {legend, swatches} from "@d3/color-legend"
Insert cell
d3 = require('d3@7')
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