Reputation: 859
I've AngularJS Application using Highcharts JS v5.0.10. I've drawn line and stacked column charts with initial data.
but When I change some parameters in application, and I'm making REST call, and it's successful with JSON response. Highcharts are not reloading/redrawing with changed data, It shows me chart with same old initial data.
How could I redraw chart once I receive server response ? Need JS Side solution.
EDIT : I'm not using Highcharts-ng directive, so another duplicate question is not solving my problem - Already tried that.
Upvotes: 0
Views: 292
Reputation: 243
You should use $scope.$watch for checking data change in highchart. Inside that function we need to call chart.redraw()
Upvotes: 2