Public
Edited
Sep 3, 2024
Insert cell
Insert cell
Insert cell
chart = Tree(flare, {
label: d => d.name,
title: (d, n) => `${n.ancestors().reverse().map(d => d.data.name).join(".")}`, // hover text
sort: (a, b) => d3.descending(a.height, b.height), // reduce link crossings
tree: d3.cluster,
width: 1152,
curve: d3.curveStep
})
Insert cell
flare = FileAttachment("flare.json").json()
Insert cell
import {Tree} from "@d3/tree"
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