title: Google GeoChart (library Lavacharts) -> AddRow / AddRows not rendering any result on map despite array of values is created
body: <p><strong>Issue:</strong></p>
  
  <p><a href="http://lavacharts.com/#example-geo" rel="nofollow noreferrer">Laravel GeoChart Library</a> to Render <a href="https://developers.google.com/chart/interactive/docs/gallery" rel="nofollow noreferrer">Google Visualization</a> -> AddRow / AddRows not rendering any result on map despite array of values is created. </p>
  
  <p><strong>Controller Code (chart creation code)</strong></p>
  
  <pre><code>$countryIso = ['US','CA','BR']; 
  foreach ($countryIso as $isocode) {
              $productDDP[$isocode] = $this-&gt;product-&gt;priceCalc($product = $product, $countryIso = $isocode);
          }
  </code></pre>
  
  <p><strong>View Results: using different variants of Code and giving errors:</strong></p>
  
  <p>If I print the result of         <code>print_r($productDDP);</code></p>
  
  <p>it displays the following code:</p>
  
  <pre><code>Array
  (
      [US] =&gt; 900
      [CA] =&gt; 1,276
      [BR] =&gt; 1,215
  )
  </code></pre>
  
  <p><strong>I tried different approaches:</strong></p>
  
  <p><strong>with             ->addRows(array($productDDP));</strong>
  "Invalid number of cells, must be less than or equal to the number of columns."</p>
  
  <p><strong>with             ->addRow(array($productDDP));  or using             ->addRow([$productDDP]);</strong></p>
  
  <p>Argument 3 passed to Khill\Lavacharts\DataTables\Cells\Cell::__construct() must be of the type array, string given</p>
  
  <p><strong>with             ->addRows($productDDP);</strong></p>
  
  <p>Argument 1 passed to Khill\Lavacharts\DataTables\DataTable::addRow() must be of the type array or null, string given</p>
  
  <p><strong>with             ->addRow(array([$productDDP]))</strong></p>
  
  <p>Render the chart but no value is set on the map.</p>
  
  Questions?
  
  <p><strong>- What I have to use for that kind of arrays?</strong> </p>
  
  <p><strong>- addRow or addRows?.</strong> </p>
  
  <p><strong>- In which format do we have to pass array data for addRow/s?</strong></p>
  
  <p>Taking into consideration I passed all possible variants to addrow() I don't know if its an issue or a coding problem.</p>
  
  <p>any help appreciated.</p>