Published
Edited
Nov 4, 2019
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d3.json("https://api.github.com/repos/Bicicletorama/Game")
Insert cell
Insert cell
d3.json("https://api.github.com/repos/Bicicletorama/Game/contributors")
Insert cell
Insert cell
d3.json("https://api.github.com/repos/Bicicletorama/Game/collaborators")
Insert cell
Insert cell
Insert cell
tableData = loadCsvToArray('https://docs.google.com/spreadsheets/d/1yGOFkZ2INjrqGIrZ4-cqRJUE361CEAxpaBU6t6rG9cQ/gviz/tq?tqx=out:csv');
Insert cell
Insert cell
Insert cell
md`# Coletando os dados dos repositórios`
Insert cell
repositoriesPromisses = tableData.map(d => d3.json("https://api.github.com/repos/" + d[0]))
Insert cell
repositories = Promise.all(repositoriesPromisses).then(values => values);
Insert cell
usersNames = tableData.map(d => d[1].split(";"))//split all users
.reduce((accumulator, currentValue) => accumulator.concat(currentValue))//merge arrays
.filter((item, pos, self) => self.indexOf(item) == pos)//remove duplicate
Insert cell
Insert cell
Insert cell
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