diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..4fee640e Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md index 1613a3b0..d44952a8 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,11 @@ # GitHub Tracker -Replace this readme with your own information about your project. - -Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. +The assignment this week was to create a page that keeps track of the repositories that I have forked and worked on during the Technigo Bootcamp. The project allowed me to get a deeper knowledge of how to use API:s. ## The problem -Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next? +I started out by breaking down the project in smaller pieces and focused on fetching all the API:s. It was sometimes hard to understand where to place the different chunks of code in Javascript, for example where to call the functions and grasp how everything should be connected. If I had more time I would add some more information to the repos, for example display the commit messages and/or the comments from each pull request. ## View it live -Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about. +https://github-tracker-rephili.netlify.app/ diff --git a/code/chart.js b/code/chart.js index 92e85a30..12278464 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,21 @@ -//DOM-selector for the canvas 👇 -const ctx = document.getElementById('chart').getContext('2d') +//DOM-selector +const ctx = document.getElementById("chart").getContext("2d"); -//"Draw" the chart here 👇 +//The chart +const drawChart = (number) => { + const config = { + type: "pie", + data: { + labels: ["Finished projects", "Projects left"], + datasets: [ + { + label: "My First Dataset", + data: [number, 19 - number], + backgroundColor: ["#ee6c4d", "#3d5a80"], + hoverOffset: 4, + }, + ], + }, + }; + const myChart = new Chart(ctx, config); +}; diff --git a/code/index.html b/code/index.html index 2fb5e0ae..4c0dfe2f 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,42 @@ -
- - - -