• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

angular chart is not rendering

Hi,

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.

<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

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

I've added all the dependencies. Including the javascript files.
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script>
<script src="http://cdn.jsdelivr.net/angular.chartjs/latest/angular-chart.min.js"></script>

Any help will be much appreciated. Thanks!
0
KavyaVS
Asked:
KavyaVS
1 Solution
 
BigRatCommented:
Which one are you using, because I don't recognize the version from the CDN links.

If it is this one
https://www.npmjs.com/package/angular-chart.js/
then we'll need to see how you have set up the config and the controller.
0
 
KavyaVSAuthor Commented:
Thanks
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now