Fix date for graph, problem introduced in 3f5668

This commit is contained in:
2024-06-18 20:12:36 +09:30
parent ef2e208fde
commit c9700fbd0c
2 changed files with 4 additions and 3 deletions

View File

@@ -338,7 +338,7 @@
'name'=>$key,
'dashStyle'=>'ShortDot',
'visible'=>$item->first()->show,
'data'=>$item->map(function($item) { return ['x'=>\Carbon\Carbon::createFromFormat('Y-m-d',$item->date)->timestamp,'y'=>$item->count]; })
'data'=>$item->map(function($item) { return ['x'=>\Carbon\Carbon::createFromFormat('Y-m-d',$item->date)->timestamp*1000,'y'=>$item->count]; })
]; })
->values() !!}
});