Skip to content

Commit 1fb3fd7

Browse files
Graph Headers
- Only for past 30 days and annual - Will probably change the pie graph to some other data
1 parent 92e09bc commit 1fb3fd7

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/graphAnnual.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ function createAnnualHoursGraph() {
3131
legend: {
3232
display: false,
3333
},
34+
title: {
35+
display: true,
36+
text: 'Annual Hours',
37+
},
3438
},
3539
scales: {
3640
y: {

src/graphMonth.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ function createChart() {
3737
legend: {
3838
display: false,
3939
},
40+
title:{
41+
display: true,
42+
text: 'Past 30 Days',
43+
}
4044
},
4145
scales: {
4246
y: {

src/index.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ h1,h2,h3,h4,h5,h6 {
217217

218218
.bottom-grid {
219219
display: grid;
220-
grid-template-columns: repeat(3, 1fr);
220+
grid-template-columns: 1fr 1fr auto;
221221
grid-gap: 5px;
222222
overflow: hidden;
223223
}
@@ -296,7 +296,6 @@ h1,h2,h3,h4,h5,h6 {
296296
background-color: #252525
297297
}
298298

299-
300299
.topic-item-div h3 {
301300
text-align: left;
302301
color: #9593D9;

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h3>10.5</h3>
8787
</div>
8888
<div class="bottom-right-graphs">
8989
<div class="container">
90-
<canvas id="topicHoursGraph" style="width: 100%; height: auto; align-self: center"></canvas>
90+
<canvas id="topicHoursGraph" style="width: auto; height: 100%; align-self: center;"></canvas>
9191
</div>
9292
<div class="container">
9393
<canvas id="annualHoursGraph"></canvas>

0 commit comments

Comments
 (0)