mirror of
https://github.com/DanielSiepmann/tracking.git
synced 2024-11-22 05:56:08 +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();
|
->fetchAll();
|
||||||
|
|
||||||
foreach ($result as $row) {
|
foreach ($result as $row) {
|
||||||
$labels[] = $row['title'] . ' [' . $row['uid'] . ']';
|
$labels[] = mb_strimwidth($row['title'], 0, 50, '…') . ' [' . $row['uid'] . ']';
|
||||||
$data[] = $row['total'];
|
$data[] = $row['total'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue