on my webpage is a chart drawn with Highchart. Now, if i resize my whole window i want this chart to adjusts its size (especially the width). The Code looks similar to this:
window.onresize=function(){resized();}
function resized()
{
$("#container").highcharts().redraw();
}
If I overwrite the redraw event (with something like "alert("resized");") I will get a result so the method should be called - but the chart doesn't changes its size. I also tried to set the charts size manually with
$("#container").highcharts().setSize(width, height, false);
But both ways didn't work. Is there any other solution?