$abc = kehadiran::select(DB::raw('sum(total) as sums'), DB::raw("DATE_FORMAT(day,'%M %Y') as months"))->groupBy('months')->get();
$chart = Charts::database($abc, 'bar', 'highcharts')->title("Kehadiran Jemaat Perbulan")->elementLabel("Total")->dimensions(1000, 500)->responsive(false)->groupBy('months');
return view('chart',compact('chart'));
the result is always one, I hope the addition is raw
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2N6hWJA
via IFTTT
Aucun commentaire:
Enregistrer un commentaire