javascript - Highcharts reflow all charts at once / trigger resize event in Angular? -


we have angular app has several dozens of highcharts/highstock instances across many different views.

we doing app-wide button setting wider screen width setting toggling css max-width rule.

problem highcharts instances ain't doing reflow/redraw after elder parent container has been resized. , triggering reflows @ higher level of scope arduous, keeping list possible chart instance containers...

i did not manage invoke reflow triggering resize event programmatically, tried several different syntaxes i.e.

settimeout(function() {     angular.element(window).triggerhandler('resize'); }, 900); 

is there way trigger reflow all highcharts instances without specifying container elements?

or proper syntax programmatically triggering window resize event in angular?

update: seems calling window resize has stopped working in hc version 4.2.1 https://github.com/highcharts/highcharts/issues/5051


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -