Published
Edited
Sep 10, 2021
Insert cell
Insert cell
Plot.plot({
x:{domain:[0,10]},
y:{domain:[0,10]},
marks:[
Plot.ruleX([0]),
Plot.ruleY([0]),
Plot.dot(X,{x:X,y:Y,r:5,stroke:"black",fill:"red"}),
Plot.text(X,{x:X,y:Y,dy:20,fontSize:15,text: (d,i) => `(${d},${Y[i]})`})

]
})
Insert cell
X = [2,8]
Insert cell
Y = [3,7]
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