'use strict';

angular.module('stockApp')
  .controller('MainCtrl', function ($scope, StockData) {

    $scope.stockSymbols = [
      'YHOO'
    ];

    StockData.get($scope.stockSymbols[0], '2013-09-01', '2014-03-31').then(function (data) {

      var serie = {
        name: $scope.stockSymbols[0],
        data: data,
        tooltip: {
          valueDecimals: 2
        }
      };

      $scope.chartConfig.series.push(serie);
      $scope.chartConfig.loading = false;

    });

    $scope.chartConfig = {
      options: {
        chart: {
          type: 'line',
          zoomType: 'x'
        }
      },

      rangeSelector: {
        selected: 1
      },

      title: {
        text: 'Stock Data'
      },

      series: [],

      useHighStocks: true,
      loading: true
    };

  });

@@ -137,57 +137,129 @@
 HOO'
-%0A    %5D;%0A%0A    StockData.get($scope.stockSymbols%5B0%5D
+,%0A      'MSFT',%0A      'KO'%0A    %5D;%0A%0A    angular.forEach($scope.stockSymbols, function (value) %7B%0A%0A      StockData.get(value
 , '2
@@ -314,16 +314,18 @@
 %0A%0A      
+  
 var seri
@@ -342,38 +342,25 @@
     
+  
 name: 
-$scope.stockSymbols%5B0%5D,%0A
+value,%0A  
     
@@ -383,16 +383,18 @@
         
+  
 tooltip:
@@ -392,24 +392,26 @@
  tooltip: %7B%0A
+  
           va
@@ -429,26 +429,30 @@
 : 2%0A        
-%7D%0A
+  %7D%0A  
       %7D;%0A%0A  
@@ -451,24 +451,26 @@
   %7D;%0A%0A      
+ 
+ 
 $scope.chart
@@ -498,24 +498,26 @@
 rie);%0A      
+  
 $scope.chart
@@ -541,16 +541,27 @@
 false;%0A%0A
+      %7D);%0A%0A
     %7D);%0A

Add multiple stocks