Platform
Resources
Pricing
Sign in
Contact us
Fil
Vocateur.
Workspace
Fork
Public
2 collections
By
Fil
Edited
Sep 14, 2022
1 fork
24 stars
1
Graphs
Word Tour: 40k words and their friends
Hello, orb
Hello, cosmograph
3D graph on a sphere
Four-color world map with Clingo
Unconnected Delaunay Neighbors
Colorized Manhattan Spanning Tree
Shortest path
Dijkstra’s algorithm in gpu.js
Lloyd’s relaxation on a graph
Manhattan Voronoi II
Manhattan Diameter
Manhattan Voronoi
Graph Voronoi
Mobility landscapes — an introduction
Dijkstra’s shortest-path tree
World Cities Urquhart
Protein Matrix
Convex Spectral Weights
Delaunay.findTriangle
Force Simulation Web Worker
Save a Force-Directed Graph to localStorage
Hello Biofabric
Travelling with a self-organizing map
Levenshtein transition
ngraph: pagerank, louvain…
Also listed in…
Hello
Insert cell
Insert cell
{
const
canvas
=
DOM
.
canvas
(
width
,
700
)
;
yield
canvas
;
const
graph
=
new
cosmo
.
Graph
(
canvas
,
config
)
;
graph
.
setData
(
nodes
,
links
)
;
graph
.
zoom
(
0.9
)
;
invalidation
.
then
(
(
)
=>
{
// TODO
}
)
;
}
Insert cell
mutable
clicked
=
null
Insert cell
cosmo
=
import
(
"https://cdn.skypack.dev/@cosmograph/cosmos@1"
)
Insert cell
Insert cell
// "https://cosmograph.app/data/jan99jac040sc.csv"
data
=
FileAttachment
(
"jan99jac040sc.csv"
)
.
csv
(
{
typed
:
true
}
)
Insert cell
nodes
=
[
...
new
Set
(
data
.
flatMap
(
(
d
)
=>
[
d
.
source
,
d
.
target
]
)
)
]
.
map
(
id
=>
(
{
id
}
)
)
Insert cell
links
=
data
Insert cell
config
=
(
{
backgroundColor
:
"#151515"
,
nodeSize
:
3
,
nodeColor
:
"#984040"
,
linkWidth
:
0.1
,
linkColor
:
"#8C8C8C"
,
linkArrows
:
false
,
simulation
:
{
linkDistance
:
1
,
linkSpring
:
2
,
repulsion
:
0.1
,
gravity
:
0.1
,
decay
:
10000
}
,
events
:
{
onClick
:
(
node
)
=>
(
mutable
clicked
=
node
)
}
}
)
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.
Try it for free
Learn more
Fork
View
Export
Listed in...
Graphs
Fil
Hello
Fil
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
clicked
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
cosmo
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
nodes
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
links
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
config
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML