Published
Edited
Apr 27, 2022
Importers
Insert cell
Insert cell
Insert cell
Insert cell
function createJsonDownloadButton({
data,
filename = "data.json",
buttonTitle = "Download JSON",
indent = 2
} = {}) {
const blob = new Blob([JSON.stringify(data, null, indent)], {
type: "text/json"
});
return DOM.download(blob, filename, buttonTitle);
}
Insert cell
Insert cell
function randomFloat(min, max) {
return min + (max - min) * Math.random();
}
Insert cell
function randomInteger(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
Insert cell
Insert cell
import { signature } from "@mootari/signature@553"
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