Published
Edited
May 28, 2022
Insert cell
Insert cell
Insert cell
Plot.plot({
width: 1000,
x: {
domain: [0, 360],
ticks: Array(25).fill(0).map((_, i) => i * 15)
},
y: {
domain: [0, 4],
},
marks: [
Plot.rectY(bins, {x: "theta", interval: 360.0/binCount, y: "count", fill: "grey"})
]
});
Insert cell
bins = Array(binCount).fill(0).map((_, i) => ({theta: i*360/binCount, count: Math.sin(10*i/binCount) + 2}))
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