Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.
functionautoBox(){
document.body.appendChild(this);
const{x,y,width,height}=this.getBBox();
document.body.removeChild(this);
return[x,y,width,height];
}
width=1200
radius=width/2
tree=d3.cluster().size([2*Math.PI,radius-100])
d3=require("d3@5")
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.