score:0

why not use this:

var chartoptions = {
    chart: {
        renderto: '[id of div]',
    },
    xaxis:{

    },
     ...
    series:{

    },
};

var chartname = new highcharts.chart({chartsoptions});

this should definitely work for you....just use chartname.setoptions() to set the size

score:1

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

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

score:1

at the newest version you can still use first construction: http://jsfiddle.net/l6hpm/

chart = new highcharts.stockchart({
        chart:{
            renderto:'container'
        },

i second solution you can use:

http://jsfiddle.net/nbhj9/

 var chart = $('#container').highcharts();

        chart.setsize(100,100);

Related Query

More Query from same tag