Published
Edited
Feb 23, 2018
Insert cell
Insert cell
Insert cell
points = {
const points = [];

for (let i = 0; i < numPoints; i++) {
const x = Math.floor(Math.random() * width);
const y = Math.floor(Math.random() * height);
const h = hilbert(x, y);
points.push([x, y, h]);
}
return points.sort((a, b) => a[2] - b[2]);
}
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

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