mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Remove unused values from charts.
This commit is contained in:
@@ -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' => [],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@@ -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)],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@@ -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' => [],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user