Skip to content

Firefly III: a personal finances manager

Remove unused values from charts.

James Cole93e18ea195ef
diff --git a/app/Api/V1/Controllers/Chart/AccountController.php b/app/Api/V1/Controllers/Chart/AccountController.php
index 63e1f4a786..22c97e13d9 100644
--- a/app/Api/V1/Controllers/Chart/AccountController.php
+++ b/app/Api/V1/Controllers/Chart/AccountController.php
@@ -119,8 +119,6 @@ class AccountController extends Controller
'currency_decimal_places' => $currency->decimal_places,
'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2
- 'fill' => null, // true, false, null
- 'backgroundColor' => null, // null or hex
'entries' => $this->expandNames($tempData),
];
$chartData[$currencyId] = $currentSet;
@@ -209,8 +207,6 @@ class AccountController extends Controller
'currency_decimal_places' => $currency->decimal_places,
'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2
- 'fill' => null, // true, false, null
- 'backgroundColor' => null, // null or hex
'entries' => $this->expandNames($tempData),
];
$chartData[$currencyId] = $currentSet;
@@ -271,8 +267,6 @@ class AccountController extends Controller
'currency_decimal_places' => $currency->decimal_places,
'type' => 'line', // line, area or bar
'yAxisID' => 0, // 0, 1, 2
- 'fill' => null, // true, false, null
- 'backgroundColor' => null, // null or hex
'entries' => [],
];
diff --git a/app/Api/V1/Controllers/Chart/AvailableBudgetController.php b/app/Api/V1/Controllers/Chart/AvailableBudgetController.php
index 3391f17eb2..0f2c2d79a6 100644
--- a/app/Api/V1/Controllers/Chart/AvailableBudgetController.php
+++ b/app/Api/V1/Controllers/Chart/AvailableBudgetController.php
@@ -73,8 +73,6 @@ class AvailableBudgetController extends Controller
'currency_decimal_places' => $currency->decimal_places,
'type' => 'pie',
'yAxisID' => 0, // 0, 1, 2
- 'fill' => null, // true, false, null
- 'backgroundColor' => null, // null or hex
'entries' => [$spent * -1],
],
[
@@ -85,8 +83,6 @@ class AvailableBudgetController extends Controller
'currency_decimal_places' => $currency->decimal_places,
'type' => 'line', // line, area or bar
'yAxisID' => 0, // 0, 1, 2
- 'fill' => null, // true, false, null
- 'backgroundColor' => null, // null or hex
'entries' => [round($left, $currency->decimal_places)],
],
];
diff --git a/app/Api/V1/Controllers/Chart/CategoryController.php b/app/Api/V1/Controllers/Chart/CategoryController.php
index fc3de26459..4d7a6a4422 100644
--- a/app/Api/V1/Controllers/Chart/CategoryController.php
+++ b/app/Api/V1/Controllers/Chart/CategoryController.php
@@ -76,8 +76,6 @@ class CategoryController extends Controller
'currency_decimal_places' => $decimalPlaces,
'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2
- 'fill' => null, // true, false, null
- 'backgroundColor' => null, // null or hex
'entries' => [],
];
}
@@ -105,8 +103,6 @@ class CategoryController extends Controller
'currency_decimal_places' => $decimalPlaces,
'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2
- 'fill' => null, // true, false, null
- 'backgroundColor' => null, // null or hex
'entries' => [],
];
}
@@ -134,8 +130,6 @@ class CategoryController extends Controller
'currency_decimal_places' => $decimalPlaces,
'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2
- 'fill' => null, // true, false, null
- 'backgroundColor' => null, // null or hex
'entries' => [],
];
}
@@ -163,8 +157,6 @@ class CategoryController extends Controller
'currency_decimal_places' => $decimalPlaces,
'type' => 'bar', // line, area or bar
'yAxisID' => 0, // 0, 1, 2
- 'fill' => null, // true, false, null
- 'backgroundColor' => null, // null or hex
'entries' => [],
];
}