Public
Edited
Sep 19, 2020
1 fork
Insert cell
Insert cell
Insert cell
plot = {
const box = new Textbox({
font: '14px/18px sans-serif',
width: w,
parser: Textbox.latexparser
});
const lines = box.linebreak(await FileAttachment("latex.tex").text());

const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
svg.setAttribute('width', w);
svg.setAttribute('height', lines.height + 20);
svg.appendChild(lines.svg());

return svg;
}
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