Public
Edited
Aug 28, 2024
5 forks
1 star
Insert cell
Insert cell
chart = {
const svg = d3
.create("svg")
.attr("viewBox", [0, 0, width, height])
.style("overflow", "visible");

//Define the 1. circle
svg
.append("circle")
.attr("id", "circle1")
.attr("cx", 300)
.attr("cy", 200)
.attr("r", 180);

//Define the 2. circle
svg
.append("circle")
.attr("id", "circle2")
.attr("cx", 500)
.attr("cy", 200)
.attr("r", 180);

//Define the 3. circle
svg
.append("circle")
.attr("id", "circle3")
.attr("cx", 400)
.attr("cy", 350)
.attr("r", 180);

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