Public
Edited
Nov 30, 2020
4 stars
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// {
// const cell = voronoiCellForLattice(orbitForA[i]);

// const ctx = DOM.context2d(400, 400);
// const xScale = d3.scaleLinear().domain([-1, 1]).range([0, 400]);
// const yScale = d3.scaleLinear().domain([-1, 1]).range([400, 0]);

// const drawPolygon = cell => {
// const [x0, y0] = cell[0];

// ctx.beginPath();
// ctx.moveTo(xScale(x0), yScale(y0));
// for (const [x, y] of cell) {
// ctx.lineTo(xScale(x), yScale(y));
// }
// ctx.lineTo(xScale(x0), yScale(y0));
// ctx.stroke();
// };
// drawPolygon(cell);

// return ctx.canvas;
// }
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