Public
Edited
Jul 3, 2023
Importers
Insert cell
Insert cell
Insert cell
Insert cell
data = fakerCategories.map((d) => ({
name: d.name,
count: countFakerDistinct(d.f)
}))
Insert cell
countFakerDistinct = (fakerf, n = 3000) => {
const data = d3.range(n).map((d) => fakerf());
const set = new Set(data);
return set.size;
}
Insert cell
getFakerDistinct = (fakerf, n = 3000) => {
const data = d3.range(n).map((d) => fakerf());
const set = new Set(data);
return Array.from(set);
}
Insert cell
Insert cell
html`<img src="${faker.image.url()}"/>`
Insert cell
html`<img src="${faker.image.url()}" />`
Insert cell
faker.internet.color()
Insert cell
faker.internet.email()
Insert cell
faker.animal.dog()
Insert cell
faker.science.chemicalElement()
Insert cell
faker.number.int()
Insert cell
faker.number.float()
Insert cell
faker.vehicle.manufacturer()
Insert cell
faker.company.name()
Insert cell
faker.animal.type()
Insert cell
faker.vehicle.vehicle()
Insert cell
countFakerDistinct(faker.animal.lion)
Insert cell
getFakerDistinct(faker.animal.lion)
Insert cell
countFakerDistinct(faker.vehicle.vehicle)
Insert cell
countFakerDistinct(faker.animal.rodent)
Insert cell
Insert cell
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