Platform
Resources
Pricing
Sign in
Get started
Maxwell Fite
Workspace
Fork
Public
By
Maxwell Fite
Edited
Mar 22, 2023
Fork of
CS 448B Halo 5 Final Project
4
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.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
games1
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
games2
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
arrayMatches1
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
arrayMatches2
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
gameData
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
spartanCompanyMatches
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
gamertags
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML