Commit 8f017255 authored by Daniel Cothran's avatar Daniel Cothran Committed by Daniel Cothran
Browse files

Issue #3311892 by andileco: Bilboard fail to render some chart type (radar, Pie and Spline)

parent 9fccc5e3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -298,7 +298,7 @@ class Billboard extends ChartBase implements ContainerFactoryPluginInterface {
   *   Return the chart definition.
   */
  private function populateData(array &$element, array $chart_definition) {
    $type = $this->getType($element['#chart_type']);
    $type = $this->getType($element['#chart_type'], $element['#polar'] ?? FALSE);
    $types = [];
    $children = Element::children($element);
    $y_axes = [];
@@ -326,7 +326,7 @@ class Billboard extends ChartBase implements ContainerFactoryPluginInterface {
      }
      if (!in_array($type, ['pie', 'donut'])) {
        $series_title = strip_tags($child_element['#title']);
        $types[$series_title] = $child_element['#chart_type'] ? $this->getType($child_element['#chart_type']) : $type;
        $types[$series_title] = $child_element['#chart_type'] ? $this->getType($child_element['#chart_type'], $element['#polar'] ?? FALSE) : $type;
        if (!in_array($type, ['scatter', 'bubble'])) {
          $columns[$columns_key_start][] = $series_title;
          foreach ($child_element['#data'] as $datum) {