Public
Edited
Jun 16, 2023
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
selectedProperties
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
mlitSales
Insert cell
mlitAreas = {
let wards = Object.keys(tokyoAreasByWard);
let index = {};
for (let ward of wards) {
let sales = mlitSales.filter((s) => s["市区町村名"] == ward);
let uniqueAreas = new Set();
sales.map((s) => s["地区名"]).forEach((a) => uniqueAreas.add(a));
let areas = {};
for (let area of uniqueAreas) {
areas[area] = sales.filter((s) => s["地区名"] == area);
}
index[ward] = areas;
}
return index;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
tokyoStations = FileAttachment("tokyo-stations@1.csv")
.csv()
.then((stations) =>
stations.filter(
(station) => !station.WithinTokyo || station.WithinTokyo != "0"
)
)
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