I'm trying to create a full responsive highchart's pie chart in angular that is inside a div that is hidden with ng-show
.
I've read similar questions about how to use jquery to fix this issue: (one, two, three)
I have tried:
$(window).resize()
but it didn't work$scope.$apply()
worked, but it's keeps throwing an already digest cycle error- I can specify the width using the high chart's property
width : "string"
, but the chart will not be responsive and stay with the same width all the time.
Here is a Plunker of the error
Note: Just make the view window large enough, so that when you press the button you can see, that the chart is on top of the div.