///动态修改图表大小



window.onresize = function() {
//reflow : true,
// var ww = document.documentElement.clientWidth;
// var hh = document.documentElement.clientHeight;

var width = document.body.clientWidth - 400;
var height = document.body.clientHeight/2-100;
        var redraw = true; //是否显示动画效果
chartone.setSize(width, height, redraw);
}

你可能感兴趣的:(Highcharts)