title: Highchart is not working when I am fetching the axis values from database
body: <p>I am using ASP .Net web api to fetch the data from the database, And trying to make a graph of the derived data , using Highchart. When I am giving the axis values in the form: </p>
  
  <pre><code>    xAxis: {
                  categories:["Sabab","Sunjare","Ety"]
              },
  
   series: [{
               data: [20,30,40]
           }]
  </code></pre>
  
  <p>it is working fine. But when I am initializing the categories of xAxis and data of series , by the data , derived from the database, no graph is formed then.
  Here is the angular controller code.</p>
  
  <pre><code>app.controller('chartController', function ($scope,chartService) {
  
  
  
      loadStudentName();
  
      function loadStudentName() {
          var promiseget = chartService.getStudentName();
  
          promiseget.then(function (p1) { $scope.StudentNames = p1.data },
              function (errorP1) {
                  alert("Error Occurred");
              });
      }
  
  
      loadTotalMarks();
  
      function loadTotalMarks() {
          var promiseget = chartService.getTotalMarks();
  
          promiseget.then(function (p1) { $scope.TotalMarks = p1.data },
              function (errorP1) {
                  alert("Error occured");
              }
          );
      }
  
  
      Highcharts.chart('container', {
          chart: {
              type: 'column'
          },
  
          xAxis: {
              categories:$scope.StudentNames
          },
          yAxis: {
              title: {
                  text:"Marks"
              },
  
          },
  
  
          series: [{
              name: "Marks",
              data: $scope.TotalMarks
          }]
      });
  
  
  
  });
  </code></pre>
  
  <p>The <code>$scope.StudentNames</code> is populated with <code>["Ety","Sabab","Sunjare","Sadia"]</code> from the database and <code>$scope.TotalMarks</code> is populated with <code>[393,390,394,341]</code> from the database, but yet the graph is not formed.</p>