removed legend from reports

This commit is contained in:
denisdulici 2020-01-02 15:36:27 +03:00
parent 3d565bd9b8
commit ca5f621dee
6 changed files with 13 additions and 4 deletions

View File

@ -47,6 +47,9 @@ abstract class Report
'height' => '300',
'options' => [
'color' => '#6da252',
'legend' => [
'display' => false,
],
],
],
'dates' => [],

View File

@ -19,6 +19,9 @@ class ExpenseSummary extends Report
'height' => '300',
'options' => [
'color' => '#ef3232',
'legend' => [
'display' => false,
],
],
'backgroundColor' => '#ef3232',
'color' => '#ef3232',

View File

@ -19,6 +19,9 @@ class IncomeSummary extends Report
'height' => '300',
'options' => [
'color' => '#328aef',
'legend' => [
'display' => false,
],
],
'backgroundColor' => '#328aef',
'color' => '#328aef',

View File

@ -82,10 +82,10 @@ trait Charts
],
'scales' => [
'yAxes' => [
'display' => 0,
'display' => false,
],
'xAxes' => [
'display' => 0,
'display' => false,
],
],
];

View File

@ -1,6 +1,6 @@
@php $chart = $class->getChart(); @endphp
<div id="report-chart" class="card-body pt-0">
<div id="report-chart" class="card-body">
{!! $chart->container() !!}
</div>

View File

@ -2,7 +2,7 @@
<div class="card">
@include('partials.widgets.standard_header')
<div class="card-body pt-0" id="cashflow">
<div class="card-body" id="cashflow">
<div class="chart">
{!! $chart->container() !!}
</div>