main
Ilham Wara Nugroho 2025-12-04 16:27:51 +07:00
parent f845115d4f
commit 3e8ddf8e3b
1 changed files with 2 additions and 2 deletions

View File

@ -77,9 +77,9 @@ class AjaxController extends Controller
$dataset = Dataset::whereIn('tahun',[$tahun])->pluck('DatasetId')->toArray();
$data = DatasetTable48::whereIn('dataset_id',$dataset)->select('lokasi', 'jumlah_sampah')->get();
$data = DatasetTable48::whereIn('dataset_id',$dataset)->select('wilayah_pelayanan', 'jumlah_sampah')->get();
$labels = $data->pluck('lokasi');
$labels = $data->pluck('wilayah_pelayanan');
$series = $data->pluck('jumlah_sampah')->map(fn($v) => (int)$v);
return response()->json([