Link to home
Start Free TrialLog in
Avatar of samssAabee
samssAabee

asked on

AngularJS amcharts

I need to implement amchart using angular JS with a very tight deadline. I am new to both, especially angular, so I am currently having issue with generating chart with dynamic JSON data.

The chart works if I use hard coded Json, but it doesn't work if i read and pass Json data.

Please let me know if you need me code. Please alsoangularJS_amcharts.txt post a working sample code for the same, appreciate your help!
Avatar of BigRat
BigRat
Flag of France image

generateCharData() returns an empty array immediately it is called. Much later the http call returns and updates an unwatched local.

The http call needs to update a watched variable, is $scope.something in the success() function.
ASKER CERTIFIED SOLUTION
Avatar of Srinivasulu Muppala
Srinivasulu Muppala
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial