Published
Edited
May 28, 2021
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Inputs.table(nodes)
Insert cell
Insert cell
nodes = {
let data = links_gsalechenet
let nodes = [ ...new Set(data.map(d => [ d.nom_1, d.nom_2 ]).flat())]
return nodes.map(n => ({ 'id': n }))
}
Insert cell
graph = {
return {
'nodes': nodes,
'links': links
}
}
Insert cell
d3 = require('d3')
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