Unlisted
Edited
Sep 23, 2024
101 forks
Importers
80 stars
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
link: (d, n) => `https://github.com/prefuse/Flare/${n.children ? "tree" : "blob"}/master/flare/src/${n.ancestors().reverse().map(d => d.data.name).join("/")}${n.children ? "" : ".as"}`,
sort: (a, b) => d3.descending(a.height, b.height), // reduce link crossings
tree: d3.cluster,
width: 1152
})
Insert cell
flare = FileAttachment("flare.json").json()
Insert cell
Insert cell
import {Tree} from "@d3/tree"
Insert cell
import {howto} from "@d3/example-components"
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