Published
Edited
Sep 7, 2020
1 fork
8 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
chart = {
const svg = DOM.svg(width, height);
const grid = buildSVG(svg)
grid
.append("path") // equally spaced grid line, xi
.attr('d', (d, i) => `M${margins.left + xi(i)} ${margins.top}l0,${canvasHeight}`);
grid
.append("path") // equally spaced grid line, yi
.attr('d', (d, i) => `M${margins.left} ${margins.top + yi(i)}l${canvasWidth},0`);
return svg;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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