Public
Edited
Sep 19, 2020
3 stars
Insert cell
Insert cell
Insert cell
{
const ctx = DOM.context2d(width, height);

new Textbox({ width, height, font, parser: 'html' }).render(text, ctx);

return ctx.canvas;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Textbox = require("@borgar/textbox")
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