Public
Edited
Feb 9, 2023
2 forks
11 stars
Insert cell
Insert cell
Insert cell
forceGraph = ForceGraph3D()(domEl)
.d3AlphaDecay(0.01)
.d3VelocityDecay(0.1)
.d3Force('charge', null) // Deactivate existing charge
.d3Force('radial', d3Force3d.forceRadial(d => d.type === 'a' ? 300 : 600))
.d3Force('collide', d3Force3d.forceCollide(16))
.nodeRelSize(8)
.nodeColor(d => d.type === 'a' ? 'brown' : 'steelblue')
.enableNodeDrag(false)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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