Published
Edited
Nov 3, 2021
4 forks
Insert cell
Insert cell
Insert cell
Insert cell
{

const features = ["sepalLength", "sepalWidth", "petalLength", "petalWidth"];
const subGraphSize = 200;
const margin = {left:70, right:0, top:0, bottom:40};

const width = margin.left + margin.right + features.length * subGraphSize;
const height = margin.top + margin.bottom + features.length * subGraphSize;

const svg = d3.create("svg")
.attr("viewbox", [0, 0, width, height])
.style("height", `${height}px`)
.style("width", `${width}px`);

// Add content here

return svg.node();
}
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