Public
Edited
Feb 14
1 star
Insert cell
Insert cell
Plot.plot({
aspectRatio: 1,
marks: [
Plot.raster({
x1: -1,
x2: 1,
y1: -1,
y2: 1,
fill: (x, y) => Math.atan2(y, x),
clip: {
type: "Polygon",
coordinates: [
d3
.range(0, 2 * Math.PI, 0.05)
.map((angle) => [Math.cos(angle), Math.sin(angle)])
]
}
})
]
})
Insert cell
Plot = import("https://cdn.jsdelivr.net/npm/@observablehq/plot@0.6.17/+esm") // TODO remove
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