diff --git a/modules/charts_google/src/Plugin/chart/Library/Google.php b/modules/charts_google/src/Plugin/chart/Library/Google.php
index aae747b317d9bafbfb11da0cd57a69a4b55e74e6..cc4a0f68ad118524066eb7140b25450e7d0872b7 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.