Published unlisted
Edited
Sep 19, 2019
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
graphviz = {
const PKG = '@hpcc-js/wasm@0.2.0';
const base = await require.resolve(`${PKG}/dist/.`);
const script = await fetch(`${base}/worker.min.js`).then(res => res.text());
const blob = new Blob([script], {type: 'application/javascript'});
const worker = `${URL.createObjectURL(blob)}#`;
const wasmFolder = new String(base);
wasmFolder.valueOf = () => worker;
const hpccWasm = await require(PKG);
hpccWasm.wasmFolder(wasmFolder);
return hpccWasm.graphviz;
}
Insert cell
dotSVG = graphviz.layout(dot);
Insert cell
circoSVG = graphviz.layout(dot, "svg", "circo");
Insert cell
twopiSVG = graphviz.layout(dot, "svg", "twopi");
Insert cell
fdpSVG = graphviz.layout(dot, "svg", "fdp");
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