Public
Edited
Dec 14, 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
Insert cell
Insert cell
counter
Insert cell
Insert cell
Insert cell
Insert cell
test = FileAttachment("test.svg").image()
Insert cell
Insert cell
treePaths
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
pathForInstance = extractPathFromTable(instanceId, treePaths);
Insert cell
allPathElementsFound = path(d3.hierarchy(currentTreeData), pathForInstance)
Insert cell
Insert cell
pathForInstance[pathForInstance.length - 1]
Insert cell
nodes = d3.hierarchy(currentTreeData).descendants();
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
combined_forest_data = FileAttachment("combined_forest_data.json").json()
Insert cell
viewof ST = Inputs.select(
combined_forest_data.forest.map((tree, index) => `Tree ${index}`), // This maps over the 'forest' array
{ label: 'Select a Decision Tree:' }
);

Insert cell
root = d3.hierarchy(ST)
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