Published
Edited
Sep 16, 2022
Insert cell
Insert cell
path = shape2path.ellipse()
.attr("cx", d => d.cx)
.attr("cy", d => d.cy)
.attr("rx", d => d.rx)
.attr("ry", d => d.ry);
Insert cell
{
const svg = d3.select(DOM.svg(width, height));
svg.append("path")
.datum({cx, cy, rx, ry})
.attr("d", path);
return svg.node();
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
shape2path = require("shape2path@3");
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