diff options
author | Camil Staps | 2016-09-02 19:31:10 +0200 |
---|---|---|
committer | Camil Staps | 2016-09-02 19:31:10 +0200 |
commit | fc3fab83e7ac236c094957b1783cf972f44177fa (patch) | |
tree | 62f3967467bb00441fbd777b52343b831971db24 /resources | |
parent | Update name and link (diff) |
Fix statistics
Diffstat (limited to 'resources')
-rw-r--r-- | resources/views/stats.blade.php | 6 |
1 files 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: '<b>{point.y}</b> requests' }, series: [ |