Public
Edited
Mar 13, 2023
Insert cell
Insert cell
points = [
[1,4],
[7,8]
]
Insert cell
Plot.plot({
x:{domain:[0,10]},
y:{domain:[0,10]},
marks:[
Plot.ruleX([0]),
Plot.ruleY([0]),
Plot.dot(points,{r:7,fill:"blue",stroke:"black"})
]
})
Insert cell
points1 = [
{x:1,y:4},
{x:7,y:8}
]
Insert cell
Plot.plot({
x:{domain:[0,10]},
y:{domain:[0,10]},
marks:[
Plot.ruleX([0]),
Plot.ruleY([0]),
Plot.dot(points1,{x:"x",y:"y",r:7,fill:"blue",stroke:"black"})
]
})
Insert cell
x = [1,7]
Insert cell
y = [4,8]
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:7,fill:"blue",stroke:"black"})
]
})
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