From 74a26e004f1e3f71ff37bceabd8cd9158bc12716 Mon Sep 17 00:00:00 2001 From: hackerESQ Date: Fri, 22 Aug 2025 20:38:54 -0500 Subject: [PATCH] round graph --- .../views/portfolio/portfolio-performance-chart.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/portfolio/portfolio-performance-chart.blade.php b/resources/views/portfolio/portfolio-performance-chart.blade.php index 20d88ea..61eeed1 100644 --- a/resources/views/portfolio/portfolio-performance-chart.blade.php +++ b/resources/views/portfolio/portfolio-performance-chart.blade.php @@ -65,15 +65,15 @@ new class extends Component 'series' => [ [ 'name' => __('Market Value'), - 'data' => $dailyChange->map(fn ($data) => [$data->date, $data->total_market_value])->toArray(), + 'data' => $dailyChange->map(fn ($data) => [$data->date, round($data->total_market_value, 2)])->toArray(), ], [ 'name' => __('Cost Basis'), - 'data' => $dailyChange->map(fn ($data) => [$data->date, $data->total_cost_basis])->toArray(), + 'data' => $dailyChange->map(fn ($data) => [$data->date, round($data->total_cost_basis, 2)])->toArray(), ], [ 'name' => __('Market Gain'), - 'data' => $dailyChange->map(fn ($data) => [$data->date, $data->total_market_gain])->toArray(), + 'data' => $dailyChange->map(fn ($data) => [$data->date, round($data->total_market_gain, 2)])->toArray(), ], // [