Hide horizontal grid for chart on dashboard and properly format it's numbers with 2 decimals
MODIFY
app/Http/Controllers/DashboardController.php
app/Http/Controllers/DashboardController.php
@@ -40,7 +40,7 @@ class DashboardController extends Controller {
->where('happened_on', $currentYear . '-' . $currentMonth . '-' . $i)
->sum('amount');
- $dailyBalance[$i] = $balanceTick;
+ $dailyBalance[$i] = number_format($balanceTick / 100, 2);
}
return view('dashboard', [

MODIFY
resources/views/dashboard.blade.php
resources/views/dashboard.blade.php
series: [[{!! implode(',', $dailyBalance) !!}]]
}, {
showPoint: false,
- lineSmooth: false
+ lineSmooth: false,
+
+ axisX: {
+ showGrid: false
+ },
+
+ axisY: {
+ labelInterpolationFnc: function (value) {
+ return value.toFixed(2);
+ }
+ }
});
</script>
@endsection

Hide horizontal grid for chart on dashboard and properly format it's numbers with 2 decimals