0

I'm using the Angular Charts to draw a bar graph in my application. However the chart is not rendering. There are no errors shown in the dev tools too.

Edit:

However i notice that the styles of angular-chart.css are not getting applied.

<canvas id="bar" class="chart chart-bar" chart-data="data" chart-labels="labels" width="200" height="200"></canvas>

This is bound to my main controller and the values are defined as below

$scope.labels = ['2006', '2007', '2008', '2009', '2010', '2011', '2012'];
$scope.data = [
[65, 59, 80, 81, 56, 55, 40]
];

Edit:

angular.module('app', ['chart.js']);

I've added all the dependencies. Including the javascript files and css. Any help will be much appreciated. Thanks!

Sai
  • 31
  • 5

0 Answers0