Public
Edited
Jun 3, 2024
Insert cell
Insert cell
Insert cell
dotSrc = {
const posType = positionFixation === 'Anchored' ? '!' : ''
const dot = `
digraph {
graph [pad="0.212,0.055"]
node [style=filled]
a [label="0,0${posType}",pos="0,0${posType}"]
b [label="0,1${posType}",pos="0,1${posType}"]
c [label="1,0${posType}",pos="1,0${posType}"]
d [label="2,2${posType}",pos="2,2${posType}"]
e [label="-1,-1${posType}",pos="-1,-1${posType}"]
f [label="-2,0${posType}",pos="-2,0${posType}"]
g [label="3,0${posType}",pos="3,0${posType}"]
a -> b
a -> c
a -> d
a -> e
a -> f
a -> g
}
`
return dot
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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