code: function initReflow() {
  		var reflowTimeout;
  		function reflow() {
  			var width = optionsChart.width || renderTo.offsetWidth,
  				height = optionsChart.height || renderTo.offsetHeight;
  
  			if (width && height) { // means container is display:none
  				if (width !== containerWidth || height !== containerHeight) {
  					clearTimeout(reflowTimeout);
  					reflowTimeout = setTimeout(function () {
  						resize(width, height, false);
  					}, 100);
  				}
  				containerWidth = width;
  				containerHeight = height;
  			}
  		}
  		addEvent(win, 'resize', reflow);
  		addEvent(chart, 'destroy', function () {
  			removeEvent(win, 'resize', reflow);
  		});
  	}
docs: Add the event handlers necessary for auto resizing