More optimisations for users dashboard
This commit is contained in:
@@ -305,7 +305,15 @@
|
||||
cursor: 'pointer'
|
||||
}
|
||||
},
|
||||
series: {!! $o->daily_area_stats('true') !!}
|
||||
series: {!! $o->echoarea_total_daily()
|
||||
->groupBy('name')
|
||||
->transform(function($item,$key) { return [
|
||||
'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]; })
|
||||
]; })
|
||||
->values() !!}
|
||||
});
|
||||
</script>
|
||||
@append
|
Reference in New Issue
Block a user