This commit is contained in:
hackerESQ
2025-08-21 20:54:14 -05:00
parent fc5cc1fee2
commit e427d5802c
8 changed files with 28 additions and 33 deletions
@@ -57,7 +57,7 @@ new class extends Component
'graph-'.$this->scope.'-'.(isset($this->portfolio) ? $this->portfolio->id : request()->user()->id),
10,
function () use ($dailyChangeQuery) {
return $dailyChangeQuery->getDailyPerformance();
return $dailyChangeQuery->withMultipleDailyPerformance()->get();
}
);
@@ -73,7 +73,7 @@ new class extends Component
],
[
'name' => __('Market Gain'),
'data' => $dailyChange->map(fn ($data) => [$data->date, $data->total_gain])->toArray(),
'data' => $dailyChange->map(fn ($data) => [$data->date, $data->total_market_gain])->toArray(),
],
// [