Remove unused values from charts.

This commit is contained in:
James Cole
2019-02-02 12:34:58 +01:00
parent f39676eedd
commit 93e18ea195
3 changed files with 0 additions and 18 deletions

View File

@@ -119,8 +119,6 @@ class AccountController extends Controller
'currency_decimal_places' => $currency->decimal_places, 'currency_decimal_places' => $currency->decimal_places,
'type' => 'bar', // line, area or bar 'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2 'yAxisID' => 0, // 0, 1, 2
'fill' => null, // true, false, null
'backgroundColor' => null, // null or hex
'entries' => $this->expandNames($tempData), 'entries' => $this->expandNames($tempData),
]; ];
$chartData[$currencyId] = $currentSet; $chartData[$currencyId] = $currentSet;
@@ -209,8 +207,6 @@ class AccountController extends Controller
'currency_decimal_places' => $currency->decimal_places, 'currency_decimal_places' => $currency->decimal_places,
'type' => 'bar', // line, area or bar 'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2 'yAxisID' => 0, // 0, 1, 2
'fill' => null, // true, false, null
'backgroundColor' => null, // null or hex
'entries' => $this->expandNames($tempData), 'entries' => $this->expandNames($tempData),
]; ];
$chartData[$currencyId] = $currentSet; $chartData[$currencyId] = $currentSet;
@@ -271,8 +267,6 @@ class AccountController extends Controller
'currency_decimal_places' => $currency->decimal_places, 'currency_decimal_places' => $currency->decimal_places,
'type' => 'line', // line, area or bar 'type' => 'line', // line, area or bar
'yAxisID' => 0, // 0, 1, 2 'yAxisID' => 0, // 0, 1, 2
'fill' => null, // true, false, null
'backgroundColor' => null, // null or hex
'entries' => [], 'entries' => [],
]; ];

View File

@@ -73,8 +73,6 @@ class AvailableBudgetController extends Controller
'currency_decimal_places' => $currency->decimal_places, 'currency_decimal_places' => $currency->decimal_places,
'type' => 'pie', 'type' => 'pie',
'yAxisID' => 0, // 0, 1, 2 'yAxisID' => 0, // 0, 1, 2
'fill' => null, // true, false, null
'backgroundColor' => null, // null or hex
'entries' => [$spent * -1], 'entries' => [$spent * -1],
], ],
[ [
@@ -85,8 +83,6 @@ class AvailableBudgetController extends Controller
'currency_decimal_places' => $currency->decimal_places, 'currency_decimal_places' => $currency->decimal_places,
'type' => 'line', // line, area or bar 'type' => 'line', // line, area or bar
'yAxisID' => 0, // 0, 1, 2 'yAxisID' => 0, // 0, 1, 2
'fill' => null, // true, false, null
'backgroundColor' => null, // null or hex
'entries' => [round($left, $currency->decimal_places)], 'entries' => [round($left, $currency->decimal_places)],
], ],
]; ];

View File

@@ -76,8 +76,6 @@ class CategoryController extends Controller
'currency_decimal_places' => $decimalPlaces, 'currency_decimal_places' => $decimalPlaces,
'type' => 'bar', // line, area or bar 'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2 'yAxisID' => 0, // 0, 1, 2
'fill' => null, // true, false, null
'backgroundColor' => null, // null or hex
'entries' => [], 'entries' => [],
]; ];
} }
@@ -105,8 +103,6 @@ class CategoryController extends Controller
'currency_decimal_places' => $decimalPlaces, 'currency_decimal_places' => $decimalPlaces,
'type' => 'bar', // line, area or bar 'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2 'yAxisID' => 0, // 0, 1, 2
'fill' => null, // true, false, null
'backgroundColor' => null, // null or hex
'entries' => [], 'entries' => [],
]; ];
} }
@@ -134,8 +130,6 @@ class CategoryController extends Controller
'currency_decimal_places' => $decimalPlaces, 'currency_decimal_places' => $decimalPlaces,
'type' => 'bar', // line, area or bar 'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2 'yAxisID' => 0, // 0, 1, 2
'fill' => null, // true, false, null
'backgroundColor' => null, // null or hex
'entries' => [], 'entries' => [],
]; ];
} }
@@ -163,8 +157,6 @@ class CategoryController extends Controller
'currency_decimal_places' => $decimalPlaces, 'currency_decimal_places' => $decimalPlaces,
'type' => 'bar', // line, area or bar 'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2 'yAxisID' => 0, // 0, 1, 2
'fill' => null, // true, false, null
'backgroundColor' => null, // null or hex
'entries' => [], 'entries' => [],
]; ];
} }