From fc3fab83e7ac236c094957b1783cf972f44177fa Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 2 Sep 2016 19:31:10 +0200 Subject: Fix statistics --- resources/views/stats.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/views/stats.blade.php b/resources/views/stats.blade.php index f4578e5..f68c9ac 100644 --- a/resources/views/stats.blade.php +++ b/resources/views/stats.blade.php @@ -42,7 +42,7 @@ use \HebrewParseTrainer\RandomLog; $db_stats = RandomLog ::select(DB::raw('COUNT(*) as count'), 'created_at') - ->groupBy(DB::raw('DAY(created_at)')) + ->groupBy(DB::raw('DATE(created_at)')) ->orderBy('created_at') ->get(); @@ -92,7 +92,9 @@ $stats = "[" . implode(",", $stats) . "]"; ['month', [3]], ['year', [1]] ] - } + }, + pointPadding: 0.02, + groupPadding: 0.02 } }, tooltip: { pointFormat: '{point.y} requests' }, series: [ -- cgit v1.2.3