mirror of
https://github.com/DanielSiepmann/tracking.git
synced 2024-11-12 18:26:09 +01:00
Truncate page title for graph
In order to not break layout.
This commit is contained in:
parent
b19eb00329
commit
be0e13416c
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ class PageViewsPerPageDoughnut extends AbstractDoughnutChartWidget
|
|||
->fetchAll();
|
||||
|
||||
foreach ($result as $row) {
|
||||
$labels[] = $row['title'] . ' [' . $row['uid'] . ']';
|
||||
$labels[] = mb_strimwidth($row['title'], 0, 50, '…') . ' [' . $row['uid'] . ']';
|
||||
$data[] = $row['total'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue