Public
Edited
Mar 22, 2023
Insert cell
Insert cell
games1 = FileAttachment("games1.json").json()
Insert cell
games2 = FileAttachment("games2.json").json()
Insert cell
arrayMatches1 = FileAttachment("test.json").json()
Insert cell
arrayMatches2 = FileAttachment("test2@1.json").json()
Insert cell
// Games of all players in the Spartan Company from 01/01/2019 to 12/31/2022
gameData = games1.concat(games2)
Insert cell
// Each object is an array of players that played in that game together
spartanCompanyMatches = arrayMatches1.concat(arrayMatches2)
Insert cell
// All the players in the spartan company
gamertags = ["OC McBuckets","MiniPuffDaddy","Stookey8144","TTV Elimessi10","Freaknbull","EkTwEnTyFoUr","RFxXDeBaTeAbLeX","Smoke2003x","SpaghettiPigeon","Groeds25","FierceCheesev2","SpaghettiSniper","Smelliot21","SuuperChicken"]
Insert cell
gameData.filter((d) => { return d.MapVariantName === "Viking" })
Insert cell
/*{
const players = {};
spartanCompanyMatches.forEach(function(d) {
players[d.key] = d.values.filter(function (object) {
return object.Players[0].Player.Gamertag;
});
});
}*/
Insert cell
gameData.values
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