Closed jacqueslowe closed 10 years ago
Issue has been resolved, user error.
Can you please share what was wrong? I'm getting the same error and no idea what is wrong, I'm pretty sure I've followed every point of guideline right.
Hi, For me the issue was that i was passing in wrong names such as: -passing in "PolarArea" instead of "polarchart". "PolarArea" is for ChartJS while "polarchart" is for angles.
Once I passed a proper type of "polarchart" it was OK.
Not sure why the names are different! Possibly namespace collisions. I have been able to use all angles.directive with no problem.
Proper types are at the bottom of Angles.js file!
Hope this helps.
Jacques
Hi, I have had success using chartJS out of the box and wanted to use with Angular. So I found your directive. Very nice. Unfortunately, I get the following:
TypeError: undefined is not a function at Object. (http://localhost:8000/app/bower_components/angles.js:49:28)
at Object.applyFunction as fn
Angles.js: line 49 is "chart[type]($scope.data, $scope.options);"
I have followed your options: -add directive as an attribute -add $scope.options and $scope.data as your example. I am not an angular expert nor ChartJS rather I'm learning all of this. These charts as are to be used to show usage on my player. https://musicplay.firebaseapp.com/#/metrics
Currently using line-charts from N3 but they have resize issues. So I opted to ChartJS with Angles.
Let me know if this is a known issue. or is there an FAQ.
Thanks,
Jacques