Public
Edited
Sep 7, 2023
Paused
1 star
Insert cell
Insert cell
pts = d3.range(-1, 12, 0.01).map((x) => [x, Math.sin(x) / x])
Insert cell
Insert cell
plot = Plot.plot({
marks: [
Plot.line(pts),
Plot.ruleX([0]),
Plot.ruleY([0]),
Plot.axisX({ y: 0 }),
Plot.axisY({ x: 0 }),
Plot.circle([pts[i]], { fill: "black", r: 5 })
]
})
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