Public
Edited
Mar 15
Insert cell
Insert cell
{
const domEl = document.createElement('div');

const nodeScale = d3.scaleLinear().range([0.03, 0.06]);
const nodes = d3.range(NUM_STARS).map(d => ({ id: d, val: nodeScale(Math.random())}));

new ForceGraphVR(domEl)
.width(width)
.height(width/16*9)
.graphData({ nodes, links: [] })
.warmupTicks(50)
.cooldownTicks(0) // Don't animate-in, jump to final state
return domEl;
}
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