Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add Labels to charts
  • Loading branch information
Isaac Würth committed Mar 2, 2021
commit e92ae8bc206f5e83d2a70c4b2cce21b2484147e9
75 changes: 75 additions & 0 deletions epj.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@

# Time Report
Autogenerated with CI/CD and gtt.

## Project

* **total estimate**: 7d 6h
* **total spent**: 7d 7h
* **spent**: 7d 7h

![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")

## Members

* **timon.erhart**: 2d 3h
* **jari.elmer**: 1d 6h 45m
* **rafael.hangartner**: 1d 5h 30m
* **isaac.wuerth**: 1d 7h 45m


![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")



## Issues

| iid | title | spent | total estimate |
| --- | ------------------------------------------------- | --------- | -------------- |
| 8 | Server beantragen und Zugang testen&dokumentieren | | |
| 7 | Time Tracker | 5h 15m | |
| 6 | Projekt Antrag schreiben und einreichen | 2d | |
| 5 | Risiko Analyse | 5h | 2d 4h |
| 4 | Project Plan | 4d 7h 30m | 5d 2h |

## Merge request

No merge requests found

## Time records

| user | date | type | iid | time |
| ----------------- | ------------------- | ----- | --- | ------ |
| timon.erhart | 02.03.2021 00:00:00 | Issue | 5 | 1h |
| jari.elmer | 02.03.2021 00:00:00 | Issue | 5 | 1h |
| timon.erhart | 02.03.2021 00:00:00 | Issue | 5 | 3h |
| isaac.wuerth | 01.03.2021 00:00:00 | Issue | 7 | 3h |
| timon.erhart | 26.02.2021 12:51:49 | Issue | 8 | 15m |
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 7 | 1h 30m |
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 7 | 45m |
| jari.elmer | 26.02.2021 00:00:00 | Issue | 4 | 1h |
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 4 | 30m |
| timon.erhart | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
| jari.elmer | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
| rafael.hangartner | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
| timon.erhart | 26.02.2021 00:00:00 | Issue | 4 | 2h 15m |
| isaac.wuerth | 26.02.2021 00:00:00 | Issue | 4 | 1h 15m |
| isaac.wuerth | 25.02.2021 00:00:00 | Issue | 6 | 4h |
| jari.elmer | 25.02.2021 00:00:00 | Issue | 4 | 1h 30m |
| jari.elmer | 24.02.2021 09:09:13 | Issue | 4 | -3h |
| timon.erhart | 24.02.2021 00:00:00 | Issue | 6 | 2d |
| timon.erhart | 24.02.2021 00:00:00 | Issue | 6 | -1d 4h |
| jari.elmer | 24.02.2021 00:00:00 | Issue | 6 | 4h |
| rafael.hangartner | 24.02.2021 00:00:00 | Issue | 6 | 4h |
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
| timon.erhart | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
| rafael.hangartner | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
| isaac.wuerth | 24.02.2021 00:00:00 | Issue | 4 | 1h 30m |
| timon.erhart | 24.02.2021 00:00:00 | Issue | 4 | 4h 30m |
| rafael.hangartner | 24.02.2021 00:00:00 | Issue | 4 | 4h |
| jari.elmer | 24.02.2021 00:00:00 | Issue | 4 | 4h 30m |
| timon.erhart | 24.02.2021 00:00:00 | Issue | 4 | 1h 15m |
| isaac.wuerth | 24.02.2021 00:00:00 | Issue | 4 | 4h 30m |
| isaac.wuerth | 26.02.2020 00:00:00 | Issue | 4 | 1h 30m |
81 changes: 75 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"app-module-path": "^2.2.0",
"async": "^2.6.1",
"camelcase": "^4.1.0",
"chartjs-plugin-datalabels": "^0.7.0",
"chartjs-to-image": "^1.0.4",
"cli-cursor": "^2.1.0",
"cli-table": "^0.3.1",
Expand Down
48 changes: 32 additions & 16 deletions src/output/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,23 @@ class chart extends Base {
{ label: '[h]', data: [this.stats['total estimate'], this.stats['total spent'], this.stats['spent']], minBarLength : minBarLength},
]
},
"options": {
"responsive": true,
"legend": {
"position": "top"
options: {
responsive: true,
legend: {
position: "top"
},
"title": {
"display": true,
"text": "Project"
}
title: {
display: true,
text: "Project"
},
plugins: {
datalabels: {
display: true,
align: 'bottom',
backgroundColor: '#ccc',
borderRadius: 3
},
}
}
});

Expand All @@ -60,15 +68,23 @@ class chart extends Base {
{ label: '[h]', data: Object.values(this.users)},
]
},
"options": {
"responsive": true,
"legend": {
"position": "top"
options: {
responsive: true,
legend: {
position: "top"
},
title: {
display: true,
text: "Members"
},
"title": {
"display": true,
"text": "Members"
}
plugins: {
datalabels: {
display: true,
align: 'bottom',
backgroundColor: '#ccc',
borderRadius: 3
},
}
}
});

Expand Down
34 changes: 31 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,34 @@
"escape-string-regexp" "^1.0.5"
"supports-color" "^5.3.0"

"chart.js@>= 2.7.0 < 3":
"integrity" "sha512-B07aAzxcrikjAPyV+01j7BmOpxtQETxTSlQ26BEYJ+3iUkbNKaOJ/nDbT6JjyqYxseM0ON12COHYdU2cTIjC7A=="
"resolved" "https://registry.npmjs.org/chart.js/-/chart.js-2.9.4.tgz"
"version" "2.9.4"
dependencies:
"chartjs-color" "^2.1.0"
"moment" "^2.10.2"

"chartjs-color-string@^0.6.0":
"integrity" "sha512-TIB5OKn1hPJvO7JcteW4WY/63v6KwEdt6udfnDE9iCAZgy+V4SrbSxoIbTw/xkUIapjEI4ExGtD0+6D3KyFd7A=="
"resolved" "https://registry.npmjs.org/chartjs-color-string/-/chartjs-color-string-0.6.0.tgz"
"version" "0.6.0"
dependencies:
"color-name" "^1.0.0"

"chartjs-color@^2.1.0":
"integrity" "sha512-haqOg1+Yebys/Ts/9bLo/BqUcONQOdr/hoEr2LLTRl6C5LXctUdHxsCYfvQVg5JIxITrfCNUDr4ntqmQk9+/0w=="
"resolved" "https://registry.npmjs.org/chartjs-color/-/chartjs-color-2.4.1.tgz"
"version" "2.4.1"
dependencies:
"chartjs-color-string" "^0.6.0"
"color-convert" "^1.9.3"

"chartjs-plugin-datalabels@^0.7.0":
"integrity" "sha512-PKVUX14nYhH0wcdCpgOoC39Gbzvn6cZ7O9n+bwc02yKD9FTnJ7/TSrBcfebmolFZp1Rcicr9xbT0a5HUbigS7g=="
"resolved" "https://registry.npmjs.org/chartjs-plugin-datalabels/-/chartjs-plugin-datalabels-0.7.0.tgz"
"version" "0.7.0"

"chartjs-to-image@^1.0.4":
"integrity" "sha512-9Oh5dnWf2PUIIdl6ORgsM8GukoM29I9vutytDrC10Iw+K4xQ0DjtXTPdv95XG+fEU1H/+OzU9BWQdKC59tVIhg=="
"resolved" "https://registry.npmjs.org/chartjs-to-image/-/chartjs-to-image-1.0.4.tgz"
Expand Down Expand Up @@ -474,14 +502,14 @@
"map-visit" "^1.0.0"
"object-visit" "^1.0.0"

"color-convert@^1.9.0":
"color-convert@^1.9.0", "color-convert@^1.9.3":
"integrity" "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg=="
"resolved" "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz"
"version" "1.9.3"
dependencies:
"color-name" "1.1.3"

"[email protected]":
"color-name@^1.0.0", "color-name@1.1.3":
"integrity" "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
"resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz"
"version" "1.1.3"
Expand Down Expand Up @@ -1835,7 +1863,7 @@
dependencies:
"moment" ">= 2.9.0"

"moment@^2.22.2", "moment@>= 2.9.0":
"moment@^2.10.2", "moment@^2.22.2", "moment@>= 2.9.0":
"integrity" "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y="
"resolved" "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz"
"version" "2.22.2"
Expand Down