Unlisted
Edited
Sep 27, 2023
101 forks
Importers
85 stars
Insert cell
Insert cell
chart = Tree(flare, {
label: d => d.name,
sort: (a, b) => d3.descending(a.height, b.height), // reduce link crossings
tree: d3.cluster,
title: (d, n) => `${n.ancestors().reverse().map(d => d.data.name).join(".")}`, // hover text
link: (d, n) => n.children
? `https://github.com/prefuse/Flare/tree/master/flare/src/${n.ancestors().reverse().map(d => d.data.name).join("/")}`
: `https://github.com/prefuse/Flare/blob/master/flare/src/${n.ancestors().reverse().map(d => d.data.name).join("/")}.as`,
width: 1152,
height: 1152,
margin: 110
})
Insert cell
flare = FileAttachment("flare-2.json").json()
Insert cell
Insert cell
import {Tree} from "@d3/radial-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