title: Drawing morris chart in angular directive almost shows up
body: <p>I'm trying to draw a morris chart in an angular directive that is within an ng-repeat block.  It is weird, because it draws, almost?  I can see it's there and the mouseovers work, but the graph itself is only a thin line at the top.  Does anybody have any ideas?</p>
  
  <p>Here's the html:</p>
  
  <pre><code>        &lt;div id="page-wrapper" ng-repeat="d in dealerGroup.Dealerships__r" ng-if="expandedDealer == d.Id"&gt;
             &lt;div class="panel-heading"&gt;Area Chart Example&lt;/div&gt;
             &lt;div class="panel-body"&gt;
               &lt;area-chart dealership="d" chartData="d.SalesChartData"&gt;&lt;/area-chart&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>And here's the directive</p>
  
  <pre><code>angular.module('areaChart', ['ui.bootstrap']).directive('areaChart', function($window) {
  var directive = {};
  // directive.templateUrl = directivePath + '/charts/area-chart.html';
  directive.restrict = 'EA';
  directive.scope = {
      dealership: "=",
      chartdata: "="
  };
  
  directive.controller = function($scope) {
      $scope.ykeys = function() {
          var ykeys = [];
          angular.forEach($scope.chartdata, function(d,k) {
              angular.forEach(d, function(value,key) {
                  if(key != 'period') { ykeys.push(key); }
              })
          });
          return ykeys;
      }
  }
  
  directive.link = function($scope,element,attrs) {
  
      Morris.Area({
          element: element,
          xkey: 'period',
          ykeys: $scope.ykeys(),
          labels: $scope.ykeys(),
          hideHover: 'auto',
          pointSize: 2,
          data: $scope.chartdata
      }); 
  
  }
  
  return directive;
  </code></pre>
  
  <p>});</p>
  
  <p>And here's what happens:</p>
  
  <p><img src="https://i.stack.imgur.com/sCNOL.png" alt="You can see the chart hover, but the chart itself isn&#39;t there"></p>
  
  <p>Additionally, resizing makes the whole thing blow up with javascript errors everywhere.  But i'll worry that separately</p>