Skip to content

Commit

Permalink
Show billability percentage in chart (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaScorpion authored Feb 6, 2024
1 parent a7cd855 commit ddb821c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.8.0

- Show billability percentage in chart.

## v1.7.0

- Add mode for viewing chart and stats relative to contract hours.
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "TimeChimp Billability Chart",
"description": "Adds a billability chart on the TimeChimp hours page.",
"version": "1.7.0",
"version": "1.8.0",
"manifest_version": 3,
"permissions": [
"webRequest"
Expand Down
8 changes: 8 additions & 0 deletions src/content/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ export function createOrUpdateChart(
);
},
},
dataLabels: {
enabled: true,
verticalAlign: 'bottom',
style: textStyle,
formatter: function () {
return `${Math.round(this.y ?? 0)}%`;
},
},
},
{
name: 'Gem. facturabiliteit',
Expand Down

0 comments on commit ddb821c

Please sign in to comment.