Skip to content

Commit ded93a5

Browse files
committed
Add chart-file
1 parent 6e7200a commit ded93a5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

code/chart.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//DOM-selector for the canvas 👇
2+
const ctx = document.getElementById('chart').getContext('2d')
3+
4+
//"Draw" the chart here 👇

code/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@
99
</head>
1010
<body>
1111
<h1>GitHub Tracker</h1>
12+
<h2>Projects:</h2>
1213
<main id="projects"></main>
14+
15+
<!-- This will be used to draw the chart 👇 -->
16+
<canvas id="chart"></canvas>
17+
1318
<script src="./script.js"></script>
19+
<script src="./chart.js"></script>
1420
</body>
1521
</html>

0 commit comments

Comments
 (0)