diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c80900c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +code/secret.js \ No newline at end of file diff --git a/README.md b/README.md index 1613a3b0..61736952 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,4 @@ Describe how you approached to problem, and what tools and techniques you used t ## 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://fay-github-tracker.netlify.app/ diff --git a/code/chart.js b/code/chart.js index 92e85a30..607ecd57 100644 --- a/code/chart.js +++ b/code/chart.js @@ -2,3 +2,28 @@ const ctx = document.getElementById('chart').getContext('2d') //"Draw" the chart here 👇 + +const drawChart = (dataPoints) => { + + const data = { + labels: ["Finished Projects", "Unfinished Projects"], + datasets: [{ + label: '# of Projects', + data: dataPoints, + backgroundColor: [ + 'rgb(54, 162, 235)', + 'rgb(255, 205, 86)' + ], + borderWidth: 1, + hoverOffset: 4 + }] + }; + + + const config = { + type: 'doughnut', + data: data, + }; + + const myChart = new Chart(ctx, config) +} diff --git a/code/index.html b/code/index.html index 2fb5e0ae..dbc97c18 100644 --- a/code/index.html +++ b/code/index.html @@ -6,16 +6,25 @@