diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..b3bf82c8 Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md index 1613a3b0..207e4408 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. +This project is about making a github tracker for our technigo projects. it is fetched with API ## 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? +it took some time to manage to get the api fetches working and displaying in a correct way, but I'm proud that it is working now. if I had more time I would add some more features such as perhaps a searchbar or more data to display inside. ## 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://waliem-github-tracker.netlify.app/ diff --git a/code/.DS_Store b/code/.DS_Store new file mode 100644 index 00000000..e4a67957 Binary files /dev/null and b/code/.DS_Store differ diff --git a/code/Octocat.png b/code/Octocat.png new file mode 100644 index 00000000..91057da4 Binary files /dev/null and b/code/Octocat.png differ diff --git a/code/TO DO-LIST b/code/TO DO-LIST new file mode 100644 index 00000000..e69de29b diff --git a/code/chart.js b/code/chart.js index 92e85a30..6f63cca9 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,22 @@ //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: "My First Dataset", + data: [amount, 20 - 6], + backgroundColor: ["rgb(255, 92, 88)", "rgb(242, 141, 138)"], + hoverOffset: 4, + }, + ], + }, + } + const myChart = new Chart(ctx, config) +} diff --git a/code/index.html b/code/index.html index 2fb5e0ae..81b6edc6 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,34 @@ -
- - - -
+