Public
Edited
Sep 6, 2024
1 star
Insert cell
Insert cell
generateStar()
Insert cell
Insert cell
viewof LogoColor = Inputs.color({ label: "Favorite color", value: "#ffa200" })
Insert cell
viewof LegCount = Inputs.range([5, 24], {
label: "Legs",
step: 1,
value: 5
})
Insert cell
function circle(ctx, x, y, radius) {
ctx.beginPath();
ctx.arc(x, y, radius, 0, 2 * Math.PI);
ctx.fill();
}
Insert cell
function line(ctx, xStart, yStart, xEnd, yEnd) {
ctx.beginPath();
ctx.moveTo(xStart, yStart);
ctx.lineTo(xEnd, yEnd);
ctx.stroke();
}
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