Published
Edited
Nov 30, 2021
Importers
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function* goodgraphics(config = {}, sketch) {
const element = DOM.element('div');
const { id } = DOM.uid();
const graphicClass = `goodgraphic-wrapper-${id}`;

element.classList.add(graphicClass);

yield element;

const instance = new Graphic({ container: `.${graphicClass}`, ...config });

sketch(instance);
}
Insert cell
Graphic = require("https://unpkg.com/goodgraphics@0.15.0/dist/goodgraphics.umd.js")
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