Public
Edited
Oct 9, 2024
3 forks
Insert cell
Insert cell
Insert cell
{
const links = [
{ from: 1, to: 2, arrows: "to", width: 1 },
{ from: 1, to: 2, arrows: "to", width: 2 },
{ from: 1, to: 2, arrows: "to", width: 3 }
];
const nodos = [
{ id: 1, label: "1", title: "TP 1..." },
{ id: 2, label: "2", title: "TP 2..." }
];

const nodes = new vis.DataSet(nodos);
const edges = new vis.DataSet(links);
const container = document.getElementById("mynetwork");
const data = {
nodes: nodes,
edges: edges
};
const options = {};
const network = new vis.Network(container, data, options);
}
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