ITeye博客

///动态修改图表大小

chokee · 2014-06-10 10:32 · highcharts · 编程语言 · Markdown

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);	

}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。