Published
Edited
Sep 10, 2021
Fork of Adding Text
Insert cell
Insert cell
Plot.plot({
x:{domain:[0,10]},
y:{domain:[0,10]},
marks:[
Plot.ruleX([0]),
Plot.ruleY([0]),
Plot.dot(points,{x:"x",y:"y",r:5,stroke:"black",fill:"red"}),
Plot.text(points,{x:"x",y:"y",dy:20,fontSize:15,text:d => `(${d.x},${d.y})`})
]
})
Insert cell
points = [
{x:2,y:3},
{x:8,y: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