title: Highchart, is it possible to have a 'for loop' inside 'series' section?
body: <p>Currently I'm using <code>Stacked and grouped column</code> highchart which can see the code <a href="http://jsfiddle.net/b72e0vh4/8/" rel="nofollow noreferrer">in this jsfiddle link.</a> My goal is to loop inside a <code>series</code> section so that I can generate the stacked bar. I'm using laravel framework for this system.</p>
  
  <p><strong>Current code (jsfiddle)</strong></p>
  
  <pre><code>    series: [
      {
          name: 'John',
          color: 'olive',
          data: [5, 3, 4, 7, 2],
          stack: '2014',
          xAxis: 1
      },
      ...
  </code></pre>
  
  <p><strong>Attempted code (is this the way to do it?)</strong></p>
  
  <pre><code>var temp = ["john", "olive", "[5, 3, 4, 7, 2]", "2014", 1];
  
  series: [
  for(var i=0; i&lt;3; i++)
  {
      {
          name: temp[0],
          color: temp[1],
          data: temp[2],
          stack: temp[3],
          xAxis: temp[4]            
  
      },
  }
  </code></pre>
  
  <p><strong>EDIT reply for @Lucky Saini answer</strong></p>
  
  <p><a href="https://i.stack.imgur.com/P086a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P086a.png" alt="enter image description here"></a></p>