diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..887b1ec6 Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md index 1613a3b0..a93eae54 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. +Creating a github tracker for our 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? +Using javascript's fetch function to get the information from github ## 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://agitated-volhard-2172b7.netlify.app diff --git a/code/.DS_Store b/code/.DS_Store new file mode 100644 index 00000000..50bed2dd Binary files /dev/null and b/code/.DS_Store differ diff --git a/code/assets/.DS_Store b/code/assets/.DS_Store new file mode 100644 index 00000000..56121a56 Binary files /dev/null and b/code/assets/.DS_Store differ diff --git a/code/assets/github.jpeg b/code/assets/github.jpeg new file mode 100644 index 00000000..7b7e0819 Binary files /dev/null and b/code/assets/github.jpeg differ diff --git a/code/assets/github2.png b/code/assets/github2.png new file mode 100644 index 00000000..9b1658ae Binary files /dev/null and b/code/assets/github2.png differ diff --git a/code/assets/github3.png b/code/assets/github3.png new file mode 100644 index 00000000..3d141cc4 Binary files /dev/null and b/code/assets/github3.png differ diff --git a/code/chart.js b/code/chart.js index 92e85a30..a989a1dc 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,23 @@ //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: ["Projects Finished", "Projects Left"], + datasets: [ + { + label: "My First Dataset", + data: [amount, 19 - amount], + backgroundColor: ["#58a6ff", "rgb(255, 0, 0)", "rgb(255, 205, 86)"], + hoverOffset: 4, + }, + ], + }, + }; + + const statistics = new Chart(ctx, config); +}; diff --git a/code/index.html b/code/index.html index 2fb5e0ae..b2df95e7 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,38 @@ -
- - - -
+