diff --git a/CHANGELOG.md b/CHANGELOG.md index bc68c91..b356d8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/manifest.json b/manifest.json index 4cb61fc..12e2406 100644 --- a/manifest.json +++ b/manifest.json @@ -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" diff --git a/src/content/chart.ts b/src/content/chart.ts index 2687e92..5334a53 100644 --- a/src/content/chart.ts +++ b/src/content/chart.ts @@ -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',