[Chartjs]-TypeError: this.scale undefinded when using Chart.js and Angularjs

3👍

In your updateGraphWithData function

data: chartjsDataPoints.yvalues,

should be

data: [ chartjsDataPoints.yvalues ],

You might also want to try swapping your $scope.graphs[i].showSpinner = false;
and your $scope.graphs[i].chartJsData = {

Credit : Chart.js line 2686 Error

0👍

Putting the square brackets around my yvalues was the answer. I am now rendering graphs without any issues.

Thank you!

Leave a comment