Highcharts redraw diagrams
Typically, highcharts graphics are automatically redrawn when the browser window is changed, but sometimes you need to forcefully redraw graph.
Intuition suggests you need to use .redraw()
method, but, alas, it probably will not work (as it happended with me). For example, I had to redraw diagram after minimizing of left menu bar. When the menu collapses or unfolds, then width of div changes, and it need to automatically adjust the graphics to new width.
To redraw the highcharts diagrams, use .reflow()
method:
$('..close').on('click.chart', function () { // add click event on minimize menu button var $sb_chart = $('.sb_chart'); $.each($sb_chart,...