aboutsummaryrefslogtreecommitdiff
path: root/resources/views/stats.blade.php
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/stats.blade.php')
-rw-r--r--resources/views/stats.blade.php6
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: [