Public
Edited
Apr 28, 2023
Insert cell
Insert cell
{
const width = 500;
const height = 500;
const svg = d3.create("svg");
const vectorSpace = new VectorSpaceClass(svg.node());
vectorSpace.draw([{ x: 2, y: 2 }], { width, height });
return svg.node();
}
Insert cell
Insert cell
d3 = require("d3@6")
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