Public
Edited
May 30, 2023
Insert cell
Insert cell
viewof file = html`<input type=file accept="image/*">`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
seed = d3.utcDay()
Insert cell
inOffice = difference(staff, done)
Insert cell
shuffledTeam = d3.shuffler(d3.randomLcg(seed))(Array.from(inOffice))
Insert cell
difference = (set1, set2) => {
const diff = new Set();
for (let val of set1) {
if (!set2.has(val)) diff.add(val);
}
return diff;
}
Insert cell
d3 = require("d3-array@^2.7", "d3-random@^2.2.2", "d3-time@2")
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more