Published
Edited
May 14, 2019
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

function Node(data) {
this.data = data;
this.depth =
this.height = 0;
this.parent = null;
}

Insert cell
Insert cell
{
let root = processedDatum;
root.descendants().map(node => {
node.value = +node.data.value;
return node;
});
return root;
}
Insert cell
Insert cell
Insert cell
processedDatum.each(function callback(node) {
node.value = node.value + 1000;
});
Insert cell
Insert cell
processedDatum.children[1].ancestors();
Insert cell
Insert cell
processedDatum.descendants();
Insert cell
Insert cell
Insert cell
processedDatum.links();
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