Public
Edited
Dec 26, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
a = ({ x: 10, y: 10 })
Insert cell
b = ({ x: width / 2, y: 10 })
Insert cell
c = ({ x: width / 2, y: width / 2 })
Insert cell
d = ({ x: 10, y: width / 2 })
Insert cell
points = [
a,
b,
c,
d,
{ x: (a.x + b.x) / 2, y: (a.y + b.y) / 2 },
{ x: (b.x + c.x) / 2, y: (b.y + c.y) / 2 },
{ x: (c.x + d.x) / 2, y: (c.y + d.y) / 2 },
{ x: (d.x + a.x) / 2, y: (d.y + a.y) / 2 }
]
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