Published
Edited
May 27, 2019
Insert cell
Insert cell
Insert cell
mat = d => d3.tsvParseRows(String(d).trim())
Insert cell
Insert cell
data = mat`
8 0 1 8 7 3
10 0 1 2 7 4
9 7 2 0 2 3
9 7 6 5 7 3
1 2 3 4 5 8
9 8 0 6 5 4
`
Insert cell
Insert cell
color = {
const max = 10
return d3.scaleSequential(d3.interpolateGnBu).domain([0, max])
}
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