Comment

Garry Hicks

Hey Glenn,

Just curious if you found an answer to this issue.

Parent comment

Glenn Batuyong

I am working on an AngularJS Highcharts example based almost exactly on your blog post. Once the data is pulled from the service into the controller it's ready to use —however, the objects are inaccessible outside their scope. Please see my jsfiddle: https://jsfiddle.net/47ronin/y5c9cm5g/1/ —The challenge here is, Highcharts breaks if $scope.data and $scope.options are moved into an enclosing function. How can you "broadcast" the objects from within a function to an outside scope, as needed in my example. Thanks, and great blog post!

Replies

Glenn Batuyong

Actually yes, scope was solved. Sorry for the late reply!
http://jsfiddle.net/rtyw81zw/2/
as referenced by Highcharts author:
https://github.com/gevgeny/ui-highcharts/issues/3#issuecomment-116047457