diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..2fc4260a Binary files /dev/null and b/.DS_Store differ diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..1c8fe91a --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "lior-chamla.google-fonts" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 1613a3b0..87993911 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,18 @@ # GitHub Tracker -Replace this readme with your own information about your project. +This week we learned +- How to debug Javascript +- More about how to use API's to fetch data +- More about how to get specific data from the JSON response +- Unit tests: What they are and how to run them +- Understand the role of Node & NPM for running javascript scripts -Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. +# The problem -## The problem +I had a hard time with JavaScript this week (and with styling). I also struggled with time management but have a project to hand in altough it´s not completly finnished, still have a grid layout for desktop & tablet to organize. +I used google, Stack Owerflow and YouTube this week as help and of course my team helped me a lot. -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? ## 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://githubtracker-mariathomasson.netlify.app/ diff --git a/code/.DS_Store b/code/.DS_Store new file mode 100644 index 00000000..96cba358 Binary files /dev/null and b/code/.DS_Store differ diff --git a/code/chart.js b/code/chart.js index 92e85a30..9aaf1452 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,25 @@ //DOM-selector for the canvas 👇 -const ctx = document.getElementById('chart').getContext('2d') +const ctx = document.getElementById("myChart").getContext("2d"); //"Draw" the chart here 👇 +const drawChart = (amount) => { + const config = { + type: "doughnut", + data: { + labels: ["Done", "Left"], + datasets: [ + { + label: "My First Dataset", + data: [amount, 20-amount], + backgroundColor: [ + "#f687d7", + "#ffb55e", + ], + hoverOffset: 4, + }, + ], + }, + }; + + const myChart = new Chart(ctx, config); +}; \ No newline at end of file diff --git a/code/images/.DS_Store b/code/images/.DS_Store new file mode 100644 index 00000000..80cd1d49 Binary files /dev/null and b/code/images/.DS_Store differ diff --git a/code/images/GitHub-Mark-120px-plus.png b/code/images/GitHub-Mark-120px-plus.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/code/images/GitHub-Mark-120px-plus.png differ diff --git a/code/images/Octocat.png b/code/images/Octocat.png new file mode 100644 index 00000000..91057da4 Binary files /dev/null and b/code/images/Octocat.png differ diff --git a/code/images/language.png b/code/images/language.png new file mode 100644 index 00000000..222d8935 Binary files /dev/null and b/code/images/language.png differ diff --git a/code/index.html b/code/index.html index 2fb5e0ae..a3ea59d2 100644 --- a/code/index.html +++ b/code/index.html @@ -5,17 +5,43 @@