Published
Edited
Jan 6, 2022
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
encodedJson = JSON.stringify({
email: input,
name: inputName,
gender: gender
});
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
qrcode = html`<div style="max-width: 300px">${await qr.toString(encodedJson, {
margin: 2
})}</div>`
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
qr = require('https://unpkg.com/qrcode@1.4.4/build/qrcode.min.js')
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