Loading modules/charts_chartjs/src/Plugin/chart/Library/Chartjs.php +3 −0 Original line number Diff line number Diff line Loading @@ -409,6 +409,9 @@ class Chartjs extends ChartBase { } $dataset->backgroundColor = $element[$key]['#color']; } if (in_array($chart_type, ['pie', 'doughnut']) && !empty($element['#colors'])) { $dataset->backgroundColor = $element['#colors']; } $series_type = isset($element[$key]['#chart_type']) ? $this->populateChartType($element[$key]) : $chart_type; $dataset->type = $series_type; Loading Loading
modules/charts_chartjs/src/Plugin/chart/Library/Chartjs.php +3 −0 Original line number Diff line number Diff line Loading @@ -409,6 +409,9 @@ class Chartjs extends ChartBase { } $dataset->backgroundColor = $element[$key]['#color']; } if (in_array($chart_type, ['pie', 'doughnut']) && !empty($element['#colors'])) { $dataset->backgroundColor = $element['#colors']; } $series_type = isset($element[$key]['#chart_type']) ? $this->populateChartType($element[$key]) : $chart_type; $dataset->type = $series_type; Loading