diff --git a/README.md b/README.md index 1613a3b0..3f70a400 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,10 @@ # 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. +Assigment was about to make a 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? ## 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://stoic-archimedes-d36d72.netlify.app diff --git a/code/chart.js b/code/chart.js index 92e85a30..bf9c9f5e 100644 --- a/code/chart.js +++ b/code/chart.js @@ -2,3 +2,36 @@ const ctx = document.getElementById('chart').getContext('2d') //"Draw" the chart here 👇 + +const drawChart = (repos) => { + +const labels = [ + 'January', + 'February', + 'March', + 'April', + 'May', + 'June', + ]; + + const data = { + labels: labels, + datasets: [{ + label: 'My Github dataset', + backgroundColor: ['#f3722c', '#f8961e'], + borderColor: '#f7e9e7', + data: [repos, 19-repos], + }] + }; + + const config = { + type: 'bar', + data: data, + options: {} + }; + + const myChart = new Chart( + document.getElementById('chart'), + config + ); + } diff --git a/code/github-universe.jpg b/code/github-universe.jpg new file mode 100644 index 00000000..f8e71b6c Binary files /dev/null and b/code/github-universe.jpg differ diff --git a/code/index.html b/code/index.html index 2fb5e0ae..085bce3b 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,40 @@ -
- - - -