Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit e92ae8b

Browse files
author
Isaac Würth
committed
Add Labels to charts
1 parent 031dabb commit e92ae8b

File tree

5 files changed

+214
-25
lines changed

5 files changed

+214
-25
lines changed

epj.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
2+
# Time Report
3+
Autogenerated with CI/CD and gtt.
4+
5+
## Project
6+
7+
* **total estimate**: 7d 6h
8+
* **total spent**: 7d 7h
9+
* **spent**: 7d 7h
10+
11+
![alt Project summary](https://quickchart.io/chart?c=%7Btype%3A%27bar%27%2Cdata%3A%7Blabels%3A%5B%27total+estimate%27%2C%27total+spent%27%2C%27spent%27%5D%2Cdatasets%3A%5B%7Blabel%3A%27%5Bh%5D%27%2Cdata%3A%5B62%2C63%2C63%5D%2CminBarLength%3A66%7D%5D%7D%2Coptions%3A%7Bresponsive%3Atrue%2Clegend%3A%7Bposition%3A%27top%27%7D%2Ctitle%3A%7Bdisplay%3Atrue%2Ctext%3A%27Project%27%7D%2Cplugins%3A%7Bdatalabels%3A%7Bdisplay%3Atrue%2Calign%3A%27bottom%27%2CbackgroundColor%3A%27%23ccc%27%2CborderRadius%3A3%7D%7D%7D%7D&w=500&h=300&bkg=%23ffffff&f=png "Project summary")
12+
13+
## Members
14+
15+
* **timon.erhart**: 2d 3h
16+
* **jari.elmer**: 1d 6h 45m
17+
* **rafael.hangartner**: 1d 5h 30m
18+
* **isaac.wuerth**: 1d 7h 45m
19+
20+
21+
![alt Memebrs](https://quickchart.io/chart?c=%7Btype%3A%27bar%27%2Cdata%3A%7Blabels%3A%5B%27timon.erhart%27%2C%27rafael.hangartner%27%2C%27isaac.wuerth%27%2C%27jari.elmer%27%5D%2Cdatasets%3A%5B%7Blabel%3A%27%5Bh%5D%27%2Cdata%3A%5B19%2C13.5%2C15.75%2C14.75%5D%7D%5D%7D%2Coptions%3A%7Bresponsive%3Atrue%2Clegend%3A%7Bposition%3A%27top%27%7D%2Ctitle%3A%7Bdisplay%3Atrue%2Ctext%3A%27Members%27%7D%2Cplugins%3A%7Bdatalabels%3A%7Bdisplay%3Atrue%2Calign%3A%27bottom%27%2CbackgroundColor%3A%27%23ccc%27%2CborderRadius%3A3%7D%7D%7D%7D&w=500&h=300&bkg=%23ffffff&f=png "Members")
22+
23+
24+
25+
## Issues
26+
27+
| iid | title | spent | total estimate |
28+
| --- | ------------------------------------------------- | --------- | -------------- |
29+
| 8 | Server beantragen und Zugang testen&dokumentieren | | |
30+
| 7 | Time Tracker | 5h 15m | |
31+
| 6 | Projekt Antrag schreiben und einreichen | 2d | |
32+
| 5 | Risiko Analyse | 5h | 2d 4h |
33+
| 4 | Project Plan | 4d 7h 30m | 5d 2h |
34+
35+
## Merge request
36+
37+
No merge requests found
38+
39+
## Time records
40+
41+
| user | date | type | iid | time |
42+
| ----------------- | ------------------- | ----- | --- | ------ |
43+
| timon.erhart | 02.03.2021 00:00:00 | Issue | 5 | 1h |
44+
| jari.elmer | 02.03.2021 00:00:00 | Issue | 5 | 1h |
45+
| timon.erhart | 02.03.2021 00:00:00 | Issue | 5 | 3h |
46+
| isaac.wuerth | 01.03.2021 00:00:00 | Issue | 7 | 3h |
47+
| timon.erhart | 26.02.2021 12:51:49 | Issue | 8 | 15m |
48+
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 7 | 1h 30m |
49+
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 7 | 45m |
50+
| jari.elmer | 26.02.2021 00:00:00 | Issue | 4 | 1h |
51+
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 4 | 30m |
52+
| timon.erhart | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
53+
| jari.elmer | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
54+
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
55+
| timon.erhart | 26.02.2021 00:00:00 | Issue | 4 | 2h 15m |
56+
| isaac.wuerth | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
57+
| isaac.wuerth | 25.02.2021 00:00:00 | Issue | 6 | 4h |
58+
| jari.elmer | 25.02.2021 00:00:00 | Issue | 4 | 1h 30m |
59+
| jari.elmer | 24.02.2021 09:09:13 | Issue | 4 | -3h |
60+
| timon.erhart | 24.02.2021 00:00:00 | Issue | 6 | 2d |
61+
| timon.erhart | 24.02.2021 00:00:00 | Issue | 6 | -1d 4h |
62+
| jari.elmer | 24.02.2021 00:00:00 | Issue | 6 | 4h |
63+
| rafael.hangartner | 24.02.2021 00:00:00 | Issue | 6 | 4h |
64+
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
65+
| timon.erhart | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
66+
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
67+
| rafael.hangartner | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
68+
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
69+
| isaac.wuerth | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
70+
| timon.erhart | 24.02.2021 00:00:00 | Issue | 4 | 4h 30m |
71+
| rafael.hangartner | 24.02.2021 00:00:00 | Issue | 4 | 4h |
72+
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 4h 30m |
73+
| timon.erhart | 24.02.2021 00:00:00 | Issue | 4 | 1h 15m |
74+
| isaac.wuerth | 24.02.2021 00:00:00 | Issue | 4 | 4h 30m |
75+
| isaac.wuerth | 26.02.2020 00:00:00 | Issue | 4 | 1h 30m |

package-lock.json

Lines changed: 75 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"app-module-path": "^2.2.0",
3737
"async": "^2.6.1",
3838
"camelcase": "^4.1.0",
39+
"chartjs-plugin-datalabels": "^0.7.0",
3940
"chartjs-to-image": "^1.0.4",
4041
"cli-cursor": "^2.1.0",
4142
"cli-table": "^0.3.1",

src/output/charts.js

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,23 @@ class chart extends Base {
3535
{ label: '[h]', data: [this.stats['total estimate'], this.stats['total spent'], this.stats['spent']], minBarLength : minBarLength},
3636
]
3737
},
38-
"options": {
39-
"responsive": true,
40-
"legend": {
41-
"position": "top"
38+
options: {
39+
responsive: true,
40+
legend: {
41+
position: "top"
4242
},
43-
"title": {
44-
"display": true,
45-
"text": "Project"
46-
}
43+
title: {
44+
display: true,
45+
text: "Project"
46+
},
47+
plugins: {
48+
datalabels: {
49+
display: true,
50+
align: 'bottom',
51+
backgroundColor: '#ccc',
52+
borderRadius: 3
53+
},
54+
}
4755
}
4856
});
4957

@@ -60,15 +68,23 @@ class chart extends Base {
6068
{ label: '[h]', data: Object.values(this.users)},
6169
]
6270
},
63-
"options": {
64-
"responsive": true,
65-
"legend": {
66-
"position": "top"
71+
options: {
72+
responsive: true,
73+
legend: {
74+
position: "top"
75+
},
76+
title: {
77+
display: true,
78+
text: "Members"
6779
},
68-
"title": {
69-
"display": true,
70-
"text": "Members"
71-
}
80+
plugins: {
81+
datalabels: {
82+
display: true,
83+
align: 'bottom',
84+
backgroundColor: '#ccc',
85+
borderRadius: 3
86+
},
87+
}
7288
}
7389
});
7490

yarn.lock

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,34 @@
412412
"escape-string-regexp" "^1.0.5"
413413
"supports-color" "^5.3.0"
414414

415+
"chart.js@>= 2.7.0 < 3":
416+
"integrity" "sha512-B07aAzxcrikjAPyV+01j7BmOpxtQETxTSlQ26BEYJ+3iUkbNKaOJ/nDbT6JjyqYxseM0ON12COHYdU2cTIjC7A=="
417+
"resolved" "https://registry.npmjs.org/chart.js/-/chart.js-2.9.4.tgz"
418+
"version" "2.9.4"
419+
dependencies:
420+
"chartjs-color" "^2.1.0"
421+
"moment" "^2.10.2"
422+
423+
"chartjs-color-string@^0.6.0":
424+
"integrity" "sha512-TIB5OKn1hPJvO7JcteW4WY/63v6KwEdt6udfnDE9iCAZgy+V4SrbSxoIbTw/xkUIapjEI4ExGtD0+6D3KyFd7A=="
425+
"resolved" "https://registry.npmjs.org/chartjs-color-string/-/chartjs-color-string-0.6.0.tgz"
426+
"version" "0.6.0"
427+
dependencies:
428+
"color-name" "^1.0.0"
429+
430+
"chartjs-color@^2.1.0":
431+
"integrity" "sha512-haqOg1+Yebys/Ts/9bLo/BqUcONQOdr/hoEr2LLTRl6C5LXctUdHxsCYfvQVg5JIxITrfCNUDr4ntqmQk9+/0w=="
432+
"resolved" "https://registry.npmjs.org/chartjs-color/-/chartjs-color-2.4.1.tgz"
433+
"version" "2.4.1"
434+
dependencies:
435+
"chartjs-color-string" "^0.6.0"
436+
"color-convert" "^1.9.3"
437+
438+
"chartjs-plugin-datalabels@^0.7.0":
439+
"integrity" "sha512-PKVUX14nYhH0wcdCpgOoC39Gbzvn6cZ7O9n+bwc02yKD9FTnJ7/TSrBcfebmolFZp1Rcicr9xbT0a5HUbigS7g=="
440+
"resolved" "https://registry.npmjs.org/chartjs-plugin-datalabels/-/chartjs-plugin-datalabels-0.7.0.tgz"
441+
"version" "0.7.0"
442+
415443
"chartjs-to-image@^1.0.4":
416444
"integrity" "sha512-9Oh5dnWf2PUIIdl6ORgsM8GukoM29I9vutytDrC10Iw+K4xQ0DjtXTPdv95XG+fEU1H/+OzU9BWQdKC59tVIhg=="
417445
"resolved" "https://registry.npmjs.org/chartjs-to-image/-/chartjs-to-image-1.0.4.tgz"
@@ -474,14 +502,14 @@
474502
"map-visit" "^1.0.0"
475503
"object-visit" "^1.0.0"
476504

477-
"color-convert@^1.9.0":
505+
"color-convert@^1.9.0", "color-convert@^1.9.3":
478506
"integrity" "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg=="
479507
"resolved" "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz"
480508
"version" "1.9.3"
481509
dependencies:
482510
"color-name" "1.1.3"
483511

484-
512+
"color-name@^1.0.0", "color-name@1.1.3":
485513
"integrity" "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
486514
"resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz"
487515
"version" "1.1.3"
@@ -1835,7 +1863,7 @@
18351863
dependencies:
18361864
"moment" ">= 2.9.0"
18371865

1838-
"moment@^2.22.2", "moment@>= 2.9.0":
1866+
"moment@^2.10.2", "moment@^2.22.2", "moment@>= 2.9.0":
18391867
"integrity" "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y="
18401868
"resolved" "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz"
18411869
"version" "2.22.2"

0 commit comments

Comments
 (0)