Published
Edited
Mar 25, 2020
Insert cell
Insert cell
svg = {
let height = width/2;
const svg = DOM.svg(width,height);
let centerX = width/2;
let centerY = height/2;
d3.select(svg).append("circle")
.attr("fill","none")
.attr("stroke","black")
.attr("stroke-width",1)
.attr("r",height/2)
.attr("cx",centerX)
.attr("cy",centerY);
return svg;
}
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