From 95ed484e583ee474a30832c965782e733d7266b2 Mon Sep 17 00:00:00 2001
From: Daniel Cothran <2440-andileco@users.noreply.drupalcode.org>
Date: Thu, 29 May 2025 20:35:40 +0000
Subject: [PATCH] Edit Google.php

---
 modules/charts_google/src/Plugin/chart/Library/Google.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/charts_google/src/Plugin/chart/Library/Google.php b/modules/charts_google/src/Plugin/chart/Library/Google.php
index aae747b3..cc4a0f68 100755
--- a/modules/charts_google/src/Plugin/chart/Library/Google.php
+++ b/modules/charts_google/src/Plugin/chart/Library/Google.php
@@ -564,6 +564,9 @@ class Google extends ChartBase implements ContainerFactoryPluginInterface {
       ];
     }
     else {
+      if (!isset($data[0])) {
+        $data[0] = [];
+      }
       array_unshift($data[0], '');
     }
     // Ensure consistent column count.
-- 
GitLab