highcharts - upgrade to highstock 1.3.1 breaks resize code -


how resize latest code. examples use

chart = $('#thechart').highcharts({ 

instead of newing highstockchart

chart = new highcharts.stockchart({ 

i not sure if new way assigning chart variable working though , chart.setsize no longer working. use have resize code...

$(window).resize(function () {     var height = getheight();     console.log('fit new div container size, width='+$("#thechart").width()+' height='+height+' windowh='+$(window).height());     chart.setsize($("#thechart").width(), height, false); }); 

which breaks on calling setsize. width of chart automatically changes height no longer changes anymore. tried setting height on div on resize did not work @ all. how dynamically change chart size fit in window have min-height if collapsed far.

(my zoom panel broke well...is there example need add back).

thanks, dean

you can still call chart = new highcharts.stockchart(options) create charts.

however $("#container").highcharts(options); returns jquery object, not highcharts chart. chart created id use: $("#container").highcharts(); (empty highcharts())


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -