Unlisted
Edited
Oct 15, 2024
Insert cell
Insert cell
Venn = import("https://esm.sh/gh/benfred/venn.js")
Insert cell
sets = [
{ sets: ["A"], size: 12 },
{ sets: ["B"], size: 12 },
{ sets: ["A", "B"], size: 2 }
]
Insert cell
d3
.create("svg")
.attr("viewBox", [0, 0, 600, 350])
.attr("width", 600)
.datum(sets)
.call(Venn.VennDiagram())
.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