---
title: "///动态修改图表大小"
author: "chokee"
date: "2014-06-10T10:32:47Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2014-06-10T10:32:47Z"
id: 2077802
url: "https://chokee.iteye.com/blog/2077802"
---

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