title: Two graphs in Amcharts
body: <p>I want to drow two graph in <code>Amcharts</code>, but the second one never show the graph and it seems only the first part in <code>chart.dataSets = [dataSet1, dataSet2]</code> always show the graph. Then how to solve it?</p>
  
  <pre><code>function createStockChart(data) {
          var chart = new AmCharts.AmStockChart();
  
          // DATASETS
          var dataSet1 = new AmCharts.DataSet();
          dataSet1.color = "#b0de09";
          dataSet1.fieldMappings = [{
              fromField: "NAV",
              toField: "NAV"
          }];
          dataSet1.dataProvider = data;
          dataSet1.categoryField = "Date";
  
          var dataSet2 = new AmCharts.DataSet();
          dataSet2.color = "#b0de09";
          dataSet2.fieldMappings = [{
              fromField: "PNL",
              toField: "PNL"
          }];
          dataSet2.dataProvider = data;
          dataSet2.categoryField = "Date";
  
          chart.dataSets = [dataSet1, dataSet2];
  
          // PANELS
          var stockPanel1 = new AmCharts.StockPanel();
          stockPanel1.showCategoryAxis = true;
          stockPanel1.title = "NAV";
          stockPanel1.eraseAll = false;
          //stockPanel.addLabel(0, 100, "Click on the pencil icon on top-right to start drawing", "center", 16);
  
          var graph1 = new AmCharts.StockGraph();
          graph1.title = "NAV";
          graph1.valueField = "NAV";
          graph1.bullet = "round";
          graph1.bulletColor = "#FFFFFF";
          graph1.bulletBorderColor = "#00BBCC";
          graph1.bulletBorderAlpha = 1;
          graph1.bulletBorderThickness = 2;
          graph1.bulletSize = 7;
          graph1.lineThickness = 2;
          graph1.lineColor = "#00BBCC";
          graph1.useDataSetColors = false;
          graph1.comparable = true;
          graph1.compareField = "HSI";
          stockPanel1.addStockGraph(graph1);
  
          var stockPanel2 = new AmCharts.StockPanel();
          stockPanel2.showCategoryAxis = true;
          stockPanel2.title = "PNL";
          stockPanel2.eraseAll = false;
          //stockPanel.addLabel(0, 100, "Click on the pencil icon on top-right to start drawing", "center", 16);
  
          var graph2 = new AmCharts.StockGraph();
          graph2.title = "PNL";
          graph2.valueField = "PNL";
          graph2.bullet = "round";
          graph2.bulletColor = "#FFFFFF";
          graph2.bulletBorderColor = "#00BBCC";
          graph2.bulletBorderAlpha = 1;
          graph2.bulletBorderThickness = 2;
          graph2.bulletSize = 7;
          graph2.lineThickness = 2;
          graph2.lineColor = "#00BBCC";
          graph2.useDataSetColors = false;
          graph2.comparable = true;
          graph2.compareField = "HSI";
          stockPanel2.addStockGraph(graph2);
  
  
  
          chart.panels = [stockPanel1, stockPanel2];
  
  
  
          chart.write('divPnlAmChart');
      };
  </code></pre>
  
  <p></p>