Public
Edited
Oct 17, 2023
5 forks
Insert cell
Insert cell
{
const margin = {
top: 25,
bottom: 25,
left: 25,
right: 25,
}

const width = 400
const height = 300

const svg = d3.create("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)

const g = svg.append("g")
.attr("width", width)
.attr("height", height)
.attr("transform", `translate(${margin.left}, ${margin.top} )`)

g.append("rect")
.attr("width", width)
.attr("height", height)
.style("fill", "black")
return svg.node()
}
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