Public
Edited
Nov 9, 2023
Fork of Simple SVG
Insert cell
Insert cell
htl.html`<svg width=${width} height=${height}>
</svg>`
Insert cell
viewof toggle = Inputs.toggle({label: "Active", value: true})
Insert cell
height = 200
Insert cell
import {Pack} from "@d3/pack-component"
Insert cell
viewof radios = Inputs.radio(["A", "B"], {label: "Select one", value: "B"})
Insert cell
canvas = {
const context = DOM.context2d(width, 200);
context.fillStyle = "hsl(216deg 100% 13%)";
context.fillRect(0, 0, width, 200);
return context.canvas;
}
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