diff --git a/README.md b/README.md index 1613a3b0..664653a5 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,12 @@ # 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. +I created a tracker to show the GitHub repositories for the projects I have done for Technigo's web development boot camp. The user can see my user name, GitHub profile image, every project repo I have forked, and info about the individual projects. ## 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? +This was the first time I used an API in an individual project. I was very confused about the Javascript concepts, and found it hard to understand how to complete the project. After some googling and help from team mates, I managed to finish the project. +I played around more with the design, but still don't feel comfortable creating a design from scratch. If I had more time I would search for more inspiration on the design part of the project. I would also like to add more data from the API into the repo cards. ## 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://britishswede-githubtracker.netlify.app/ diff --git a/code/chart.js b/code/chart.js index 92e85a30..45c69d26 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,24 @@ //DOM-selector for the canvas 👇 -const ctx = document.getElementById('chart').getContext('2d') +const ctx = document.getElementById("chart").getContext("2d"); +// 19 weekly projects //"Draw" the chart here 👇 + +const drawChart = (amount) => { + const config = { + type: "doughnut", + data: { + labels: ["Finished Projects", "Projects Left"], + datasets: [ + { + label: "My First Dataset", + data: [amount, 19 - amount], + backgroundColor: ["rgb(255, 99, 132)", "rgb(54, 162, 235)"], + hoverOffset: 10, + }, + ], + }, + }; + + const myChart = new Chart(ctx, config); +}; diff --git a/code/index.html b/code/index.html index 2fb5e0ae..191cbb6a 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,30 @@ -
- - - -