diff --git a/background img.jpeg b/background img.jpeg new file mode 100644 index 00000000..51190fc3 Binary files /dev/null and b/background img.jpeg differ diff --git a/code/chart.js b/code/chart.js index 92e85a30..cfe351cd 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,26 @@ //DOM-selector for the canvas 👇 -const ctx = document.getElementById('chart').getContext('2d') +const ctx = document.getElementById("chart").getContext("2d"); //"Draw" the chart here 👇 + +const drawChart = (amount) => { + const config = { + type: "doughnut", + data: { + labels: ["done", "left"], + datasets: [ + { + label: "My First Dataset", + data: [amount, 19 - amount], + backgroundColor: [ + "rgba(204, 223, 218, 0.947)", + "rgba(49, 63, 59, 0.947)", + ], + hoverOffset: 4, + }, + ], + }, + }; + + const myChart = new Chart(ctx, config); +}; diff --git a/code/index.html b/code/index.html index 2fb5e0ae..8e5cb494 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,57 @@ -
- - - -Student @Technigo
+ +
+
+ Progress
+