Skip to content

Commit

Permalink
[TASK] Provide label for bar chart data
Browse files Browse the repository at this point in the history
  • Loading branch information
derhansen committed Aug 16, 2023
1 parent d9b19e1 commit 0b37cf1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Widgets/AbstractMatomoWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function getChartData(): array
],
'datasets' => [
[
'label' => $this->getLanguageService()->sL(self::LLL . 'label.matomoData'),
'backgroundColor' => ['#FF8700', '#1A568F', '#4C7E3A'],
'data' => $this->getData(),
],
Expand Down
5 changes: 5 additions & 0 deletions Resources/Private/Language/de.locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
<source>days</source>
<target>Tage</target>
</trans-unit>

<trans-unit id="label.matomoData" xml:space="preserve">
<source>Matomo data</source>
<target>Matomo Daten</target>
</trans-unit>
</body>
</file>
</xliff>
4 changes: 4 additions & 0 deletions Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
<trans-unit id="label.days" xml:space="preserve">
<source>days</source>
</trans-unit>

<trans-unit id="label.matomoData" xml:space="preserve">
<source>Matomo data</source>
</trans-unit>
</body>
</file>
</xliff>

0 comments on commit 0b37cf1

Please sign in to comment.