Public
Edited
Nov 15
Importers
Insert cell
Insert cell
cscw2024 = FileAttachment("CSCW_2024_program.json").json()
Insert cell
chi2024 = FileAttachment("CHI_2024_program_may13.json.zip")
.zip()
.then((res) => res.file("CHI_2024_program_may13.json").json())
Insert cell
cscw = processACMPapers(cscw2024)
Insert cell
navio(cscw.papers)
Insert cell
cscw.maps
Insert cell
import{navio} from "@john-guerra/navio"
Insert cell
function processACMPapers(acmConfPapers) {
const attrs = [
// "conference",
// "publicationInfo",
"sponsors",
"sponsorLevels",
"floors",
"rooms",
"tracks",
"contentTypes",
"timeSlots",
"sessions",
"events",
"contents",
"people",
"recognitions"
];

const maps = new Map(
attrs.map((a) => [a, new Map(acmConfPapers[a].map((d) => [d.id, d]))])
);

const papers = acmConfPapers.contents.map((d) => {
d.id = +d.id;
d.sessions = d.sessionIds.map((s) => {
const session = maps.get("sessions").get(s);
if (!session) console.log("Session not found", s, session);
session.room = maps.get("rooms").get(session.roomId);
session.timeSlot = maps.get("timeSlots").get(session.timeSlotId);
return session;
});

d.firstSessionName = d.sessions[0]?.name;
d.sessionName = d.sessionName || d.firstSessionName;
d.firstRoomName = d.sessions[0]?.room?.name;
d.roomName = d.roomName || d.firstRoomName;
d.firstTimestamp = new Date(d.sessions[0]?.timeSlot?.startDate);
d.timestamp = d.timestamp || d.firstTimestamp;
d.firstSessionNameWord = d.sessions[0]?.name.split(" ")[0];
d.track = maps.get("tracks").get(d.trackId).name;
d.type = d.track || `${acmConfPapers.conference.shortName} paper`;
d.authorsExpanded = d.authors.map((a) =>
maps.get("people").get(a.personId)
);
d.authorsList = d.authorsExpanded.map((a) =>
`${a.firstName?.trim()} ${a.lastName?.trim()}`.toLocaleLowerCase()
);
d.authorNames = d.authorsList.join(", ");
d.affiliationsList = [
...new Set(
d.authors
.map((a) =>
a.affiliations.map((f) => f.institution.trim().toLocaleLowerCase())
)
.flat()
)
];
d.url = `https://programs.sigchi.org/${acmConfPapers.conference.shortName.toLocaleLowerCase()}/2024/program/content/${
d.id
}`;

return d;
});

return { papers, maps };
}
Insert cell
cscw2024.conference.shortName.toLocaleLowerCase()
Insert cell
// How to render one of the papers
function renderPaper(p) {
return htl.html`
<div style="width: 150px; flex: 1; padding-right: 10px; padding-bottom: 15px">
<strong><a href=${p.url}>${p.title}</a></strong>
<div>Similarity score: ${(p.score * 100).toFixed(2)}% ${
p.awards ? p.awards : ""
}</div>
<div style="font-style: italic; max-height: 4em; overflow: auto;">${p.authorsExpanded
.map((a) => `${a.firstName} ${a.lastName}`)
.join(", ")}</div>
<div>${p.track} - ${p.firstSessionName}</div>
<div style="margin-top: 0.5em; max-height: 70px; overflow: auto">${
p.abstract
}</div>
</div>
`;
}
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