diff --git a/app/Abstracts/Report.php b/app/Abstracts/Report.php index 993623efa..5d38af9bf 100644 --- a/app/Abstracts/Report.php +++ b/app/Abstracts/Report.php @@ -47,6 +47,9 @@ abstract class Report 'height' => '300', 'options' => [ 'color' => '#6da252', + 'legend' => [ + 'display' => false, + ], ], ], 'dates' => [], diff --git a/app/Reports/ExpenseSummary.php b/app/Reports/ExpenseSummary.php index b16c60fb4..b73b12200 100644 --- a/app/Reports/ExpenseSummary.php +++ b/app/Reports/ExpenseSummary.php @@ -19,6 +19,9 @@ class ExpenseSummary extends Report 'height' => '300', 'options' => [ 'color' => '#ef3232', + 'legend' => [ + 'display' => false, + ], ], 'backgroundColor' => '#ef3232', 'color' => '#ef3232', diff --git a/app/Reports/IncomeSummary.php b/app/Reports/IncomeSummary.php index 2b84757e2..1b023a844 100644 --- a/app/Reports/IncomeSummary.php +++ b/app/Reports/IncomeSummary.php @@ -19,6 +19,9 @@ class IncomeSummary extends Report 'height' => '300', 'options' => [ 'color' => '#328aef', + 'legend' => [ + 'display' => false, + ], ], 'backgroundColor' => '#328aef', 'color' => '#328aef', diff --git a/app/Traits/Charts.php b/app/Traits/Charts.php index fbcad5fc2..b181cc1f0 100644 --- a/app/Traits/Charts.php +++ b/app/Traits/Charts.php @@ -82,10 +82,10 @@ trait Charts ], 'scales' => [ 'yAxes' => [ - 'display' => 0, + 'display' => false, ], 'xAxes' => [ - 'display' => 0, + 'display' => false, ], ], ]; diff --git a/resources/views/partials/reports/chart.blade.php b/resources/views/partials/reports/chart.blade.php index 52ba70bfc..dd4f26172 100644 --- a/resources/views/partials/reports/chart.blade.php +++ b/resources/views/partials/reports/chart.blade.php @@ -1,6 +1,6 @@ @php $chart = $class->getChart(); @endphp -