diff --git a/README.md b/README.md index 1613a3b0..15452963 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 was about fetching data from the github API and create your own github tracker. ## 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 think this project was a fun one, it went well and I understood a big part of it until the fetch commits. That was the hardest part, and if I had more time I would had put more functions and styling into it. ## 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. +Netlify link: https://gifted-stonebraker-86699f.netlify.app diff --git a/burger.png b/burger.png new file mode 100644 index 00000000..64582183 Binary files /dev/null and b/burger.png differ diff --git a/code/chart.js b/code/chart.js index 92e85a30..14e26a0e 100644 --- a/code/chart.js +++ b/code/chart.js @@ -2,3 +2,24 @@ 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-amount], + backgroundColor: [ + "rgb(255, 99, 71)", + "#d5a021" + ], + hoverOffset: 4 + }] + }, + }; + const myChart = new Chart(ctx, config) +} diff --git a/code/github-logo.png b/code/github-logo.png new file mode 100644 index 00000000..5eb5bc2d Binary files /dev/null and b/code/github-logo.png differ diff --git a/code/index.html b/code/index.html index 2fb5e0ae..1ab099ca 100644 --- a/code/index.html +++ b/code/index.html @@ -6,16 +6,35 @@