Published
Edited
Aug 31, 2021
5 stars
Insert cell
Insert cell
Insert cell
Insert cell
triangulation = d3.Delaunay.from(data /*, d => d.x, d => d.y */)
Insert cell
value = u => d => {
const r = Math.hypot(d[0], d[1]);
if (!r) return 0;
const angle = Math.atan2(d[1], d[0]);
return Math.cos(r) * Math.cos(5 * angle + u) * (r >= 0.1);
}
Insert cell
contour = d3.tricontour().triangulate(() => triangulation)
Insert cell
d3 = require("d3@7", "d3-delaunay@6", "d3-tricontour@1")
Insert cell
import {checkbox} from "@jashkenas/inputs"
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