diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..da23c180 Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md index 1613a3b0..cdc99c54 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,17 @@ # GitHub Tracker -Replace this readme with your own information about your project. +Users should be able to : +1. view the site in every screen size +2. see the information pulled from Github Res API +3. See the data visuallization through the bar chart -Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. +This project is built with: +1. JavaScript +2. Semantic html +3. CSS -## 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? ## 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://rawi-github-tracker.netlify.app/ \ No newline at end of file diff --git a/code/.DS_Store b/code/.DS_Store new file mode 100644 index 00000000..2ca23055 Binary files /dev/null and b/code/.DS_Store differ diff --git a/code/chart.js b/code/chart.js index 92e85a30..41cf6475 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,38 @@ //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: "bar", + data: { + labels: ["Completed projects", "Remaining projects"], + datasets: [ + { + label: "Technigo projects", + data: [amount, 21 - amount], + backgroundColor: [ + "#c8cccf", + "#778088", + ], + barThickness: "30", + }, + ], + }, + options: { + scales: { + x: { + grid: { + display: false, + } + }, + y: { + grid: { + display: false + } + }, + } + } + } + new Chart(ctx, config) +} \ No newline at end of file diff --git a/code/github.png b/code/github.png new file mode 100644 index 00000000..a612fdb2 Binary files /dev/null and b/code/github.png differ diff --git a/code/index.html b/code/index.html index 2fb5e0ae..5c55b32d 100644 --- a/code/index.html +++ b/code/index.html @@ -6,16 +6,28 @@