Code changes for v540

This commit is contained in:
James Cole
2020-09-18 12:16:47 +02:00
parent 0d72aa9673
commit 706cb47065
36 changed files with 375 additions and 365 deletions

View File

@@ -138,16 +138,16 @@ class ChartJsGenerator implements GeneratorInterface
'type' => $set['type'] ?? 'line',
'data' => array_values($set['entries']),
];
if (isset($set['yAxisID'])) {
if (array_key_exists('yAxisID', $set)) {
$currentSet['yAxisID'] = $set['yAxisID'];
}
if (isset($set['fill'])) {
if (array_key_exists('fill', $set)) {
$currentSet['fill'] = $set['fill'];
}
if (isset($set['currency_symbol'])) {
if (array_key_exists('currency_symbol', $set)) {
$currentSet['currency_symbol'] = $set['currency_symbol'];
}
if (isset($set['backgroundColor'])) {
if (array_key_exists('backgroundColor', $set)) {
$currentSet['backgroundColor'] = $set['backgroundColor'];
}
$chartData['datasets'][] = $currentSet;