Public
Edited
Mar 21, 2024
Insert cell
Insert cell
viewof amount = Inputs.range([0, 4], {
label: "Lamps per color",
step: 1,
value: 1
})
Insert cell
lamps = d3.cross(["r", "g", "b"], amount)
Insert cell
{
const svg = d3.create("svg").attr("viewBox", [0, 0, width, 200]);

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