Published
Edited
Feb 13, 2021
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data[0]
Insert cell
data = d3.csvParse(await FileAttachment('us-population-state-age.csv').text(), (d,i,columns) => (d3.autoType(d), d.total = d3.sum(columns, c => d[c]), d)).sort((a,b) => b.total - a.total)
Insert cell
data2 = Object.assign(d3.csvParse(await FileAttachment('data.csv').text(), d3.autoType), {y: 'Population'})
Insert cell
data3 = d3.csvParse(await FileAttachment("us-population-state-age.csv").text(), (d, i, columns) => (d3.autoType(d), d.total = d3.sum(columns, c => d[c]), d)).sort((a, b) => b["<10"] / b.total - a["<10"] / a.total)
Insert cell
Insert cell
Insert cell
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