Public
Edited
Jun 5
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data = d3.csvParse(raw.split("\n").slice(4).join("\n"))
Insert cell
Insert cell
printTable(filtered.slice(0, 20))
Insert cell
vl.markLine()
.data(filtered)
.encode(
vl.x().field("year").type("quantitative").title("Year").axis({format:"d"}),
vl.y().field("value").type("quantitative").title("% Male in Agriculture"),
vl.color().field("country").type("nominal").title("Country")
)
.width(700)
.height(400)
.title("Has Male Employment in Agriculture Declined Over Time?")
.render()
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