Published
Edited
Feb 27, 2022
2 forks
Importers
Insert cell
Insert cell
Insert cell
stratify = d3.stratify()
.id(d => d["address"])
.parentId(d => d["funded_from"])
Insert cell
fundingTree = stratify(fundingTreeData)
Insert cell
shortCircuit1 = false
Insert cell
!shortCircuit1 && graph(fundingTree, {
label: d =>
(d.data.miner_id ?
`SP: ${d.data.miner_id} - ${bytes(d.data.qualityAdjPower, { mode: 'binary' })}` : d.data.id) +
(d.data.regions ?
` - ${d.data.regions.join(', ')}` : '')
})
Insert cell
Insert cell
Insert cell
import { graph } from '@jimpick/d3-hierarchy-wider-svg/2'
Insert cell
width = 3000
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