Chartjs-Angularjs โ€“ Can't call the value from form to graph

0๐Ÿ‘

โœ…

You cannot use like that because data is an array in your chart,

You can do something like this,

$scope.newData = data.data;
$scope.newData.push($scope.number);

And assign the values in graph

DEMO

Anyway what i would recommend is there are lot of chart libraries available to support angularjs such as HighCharts-ng and nvd3. Try to use one of them.

Leave a comment