diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..a5c50e6d Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md index 1613a3b0..246004c1 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 assigment was to create a Github tracker that shows all the github repos that is created in the Bootcamp. ## 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? +First step was to get all the correct information from the Github API on the page. Using fetch and different APIs I was able to get all the info that I later styled using CSS. With dynamic ID I was able go get certain information from one fetch into another innerHTML in another fetch. ## 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://sad-jennings-8c6d22.netlify.app diff --git a/code/chart.js b/code/chart.js index 92e85a30..b709c318 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,33 @@ //DOM-selector for the canvas 👇 -const ctx = document.getElementById('chart').getContext('2d') +const ctx = document.getElementById("chart").getContext("2d"); -//"Draw" the chart here 👇 +const drawChart = (amount) => { + const config = { + type: "doughnut", + data: { + labels: ["Finished Projects", "Projects Left"], + datasets: [ + { + label: ["Finished Projects", "Projects Left"], + data: [amount, 19 - amount], + backgroundColor: ["#76b5c5", "#eab676"], + hoverOffset: 4, + }, + ], + }, + options: { + plugins: { + legend: { + labels: { + font: { + size: 12, + family: "'Poppins',sans-serif", + color: "rgba(26, 26, 24, 0.849)", + }, + }, + }, + }, + }, + }; + const myChart = new Chart(ctx, config); +}; diff --git a/code/index.html b/code/index.html index 2fb5e0ae..ec388574 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,33 @@ -
- - - -