Published
Edited
Jul 2, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
currentFlags = {
nextFlag;
function r() {
return Math.floor(Math.random() * (flagData.length + 1));
}
const idx = r();
const arr = [flagData[idx], flagData[r()], flagData[r()]];
return arr;
}
Insert cell
shuffledFlags = shuffle(currentFlags)
Insert cell
Insert cell
Insert cell
flagData = flags.split("\n").map((r) => r.split("\t"))
Insert cell
import { icon } from "@mateh/icon"
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