🎨Add month+date indication to the stats graph to avoid confusion when there are days without visits

This commit is contained in:
Flavio Copes
2017-04-29 17:21:57 +02:00
parent e0cb130bf0
commit 8c94b39bea
5 changed files with 6 additions and 7 deletions

View File

@@ -125,8 +125,8 @@ class Popularity
foreach ($chart_data as $date => $count) {
$labels[] = Grav::instance()['grav']['admin']->translate([
'PLUGIN_ADMIN.' . strtoupper(date('D', strtotime($date)))
]);
'PLUGIN_ADMIN.' . strtoupper(date('D', strtotime($date)))]) .
'<br>' . date('M d', strtotime($date));
$data[] = $count;
}