score:12

Accepted answer

you should add marginbottom:

chart = new highcharts.chart({
            chart: {
                renderto: 'container',
                type: 'column',
                marginright: 130,
                marginbottom: 70 /* here */
            },
            title: {
                text: '@model.title',
                x: -20 
            }

score:1

something like this would work:

var height = //get containers original height

var new_height = height + (data.length * 10);

$("#highcharts-0").css("{height:"+new_height+"}");

score:12

there's an api method to set the size of the chart, found on the chart object and called setsize. chart.setsize(width, height) see this example on jsfiddle and the reference.


Related Query

More Query from same tag