Public
Edited
Nov 30, 2023
1 fork
Insert cell
Insert cell
Plot.plot({
x:{domain:[0,10]},
y:{domain:[-1,1]},
marks:[
Plot.ruleX([0]),
Plot.ruleY([0]),
Plot.line(points,{x:'x',y:'y'})
]
})
Insert cell
points = {
const points = []
for(let i = 0;i <= 10; i = i + .01){
points.push({x:i,y:Math.sin(i)})
}
return points
}
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