js/chartBuilder.js
/**
 *
 * @param el chart DOM element
 * @private
 */
@param el chart DOM element
@private
@param el chart DOM element @private
function calibrateCanvas(el) {
	if (el != null) {
		if (el.scrollHeight > el.clientHeight) {
			el.style.height = '';
		}
		if (el.offsetWidth > elCanvas.offsetWidth) {
			el.style.width = elCanvas.offsetWidth + 'px';
		}
	}
	var leftCord = 0, topCord = 0;
	for (var i = 0; i < charts.length; i++) {
		var left = charts[i].domObj.offsetWidth + charts[i].domObj.offsetLeft,
			top = charts[i].domObj.offsetHeight + charts[i].domObj.offsetTop;
		leftCord = (leftCord > left ) ? leftCord : left;
		topCord = (topCord > top) ? topCord : top;
	}
	if (leftCord > 1000 && leftCord > elCanvasWrap.offsetWidth) {
		elCanvas.style.width = (leftCord + 200) + 'px';
	} else {
		elCanvas.style.width = (elCanvasWrap.offsetWidth + 200) + 'px';
	}
	if (topCord > 1000 && topCord > elCanvasWrap.offsetHeight) {
		elCanvas.style.height = (topCord + 200) + 'px';
	}
	elCanvasGrid.style.width = elCanvas.offsetWidth + 'px';
	elCanvasGrid.style.height = elCanvas.offsetHeight + 'px';
}
function calibrateCanvas ( el ) { if ( el != null ) { if ( el . scrollHeight > el . clientHeight ) { el . style . height = '' ; } if ( el . offsetWidth > elCanvas . offsetWidth ) { el . style . width = elCanvas . offsetWidth + 'px' ; } } var leftCord = 0 , topCord = 0 ; for ( var i = 0 ; i < charts . length ; i ++ ) { var left = charts [ i ] . domObj . offsetWidth + charts [ i ] . domObj . offsetLeft , top = charts [ i ] . domObj . offsetHeight + charts [ i ] . domObj . offsetTop ; leftCord = ( leftCord > left ) ? leftCord : left ; topCord = ( topCord > top ) ? topCord : top ; } if ( leftCord > 1000 && leftCord > elCanvasWrap . offsetWidth ) { elCanvas . style . width = ( leftCord + 200 ) + 'px' ; } else { elCanvas . style . width = ( elCanvasWrap . offsetWidth + 200 ) + 'px' ; } if ( topCord > 1000 && topCord > elCanvasWrap . offsetHeight ) { elCanvas . style . height = ( topCord + 200 ) + 'px' ; } elCanvasGrid . style . width = elCanvas . offsetWidth + 'px' ; elCanvasGrid . style . height = elCanvas . offsetHeight + 'px' ; }
@param el chart DOM element
 @private
@param el chart DOM element @private