Public
Edited
Jan 26, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
colorEdgesByTarget = function (element, data) {
edgeColorizer (element, data);
var m = (data.target.data.name).split ("_");
element.style("stroke-width", 7);
if (m.length > 10) {
element.style ("stroke", color_scale(_.lowerCase(m[9])));
}
};
Insert cell
Insert cell
renderedTree = tree.render({
height:height,
width:width,
'left-right-spacing': 'fit-to-size',
'align-tips':true,
'node-styler': colorNodesByName,
'edge-styler': colorEdgesByTarget
});
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