ElementStacks
HTML
<script src="http://highcharts.com/js/testing.js"></script>
<div id="container" style="border: 1px solid #000;">
<div id="chart"></div>
</div>
CSS
.ui-resizable-se {
width: 100px;
height: 100px;
background-color: red;
float: right;
}
JavaScript
var chart = new Highcharts.Chart({
chart: {
renderTo: 'chart'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
series: [{
type: 'line',
data: [29.9, 71.5, 106.4, 129.2, 144.0, 144.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
name: 'Temperature'
}]
}, function(chart){
$('#container').resizable({
resize: function(){
//console.log($(this).height())
chart.setSize( $(this).width(), $(this).height())
}
});
});