function calculate_xy_dimensions(width, opts) {
	var height;
	var aspectRatio = opts.displayConfig.aspectRatio;
	var metadata = opts.metadata;

	if (metadata.size == "auto" || opts.enableResponsive) {
		// use current width
	} else {
		width = chartSizes[metadata.size].width;
	}

	switch (metadata.size) {
		case "auto":
			height = width * aspectRatio.wide;
			break;

		case 'medium':
			height = width * aspectRatio.wide;
			break;

		case "spotLong":
			height = width * aspectRatio.longSpot;
			break;

		case "spotSmall":
			height = width * aspectRatio.smallSpot;
			break;

		default:
			height = width * aspectRatio.wide;
	}

	return {
		width: width,
		height: height
	};
}
function calculate_xy_dimensions(width, opts) {
	var height;
	var aspectRatio = opts.displayConfig.aspectRatio;
	var metadata = opts.metadata;

	if (metadata.size == "auto" || opts.enableResponsive) {
		
	} else {
		width = chartSizes[metadata.size].width;
	}

	switch (metadata.size) {
		case "auto":
			height = width * aspectRatio.wide;
			break;

		case 'medium':
			height = width * aspectRatio.wide;
			break;

		case "spotLong":
			height = width * aspectRatio.longSpot;
			break;

		case "spotSmall":
			height = width * aspectRatio.smallSpot;
			break;

		default:
			height = width * aspectRatio.wide;
	}

	return {
		width: width,
		height: height
	};
}
function calculate_xy_dimensions ( width , opts ) { var height ; var aspectRatio = opts . displayConfig . aspectRatio ; var metadata = opts . metadata ; if ( metadata . size == "auto" || opts . enableResponsive ) { // use current width } else { width = chartSizes [ metadata . size ] . width ; } switch ( metadata . size ) { case "auto" : height = width * aspectRatio . wide ; break ; case 'medium' : height = width * aspectRatio . wide ; break ; case "spotLong" : height = width * aspectRatio . longSpot ; break ; case "spotSmall" : height = width * aspectRatio . smallSpot ; break ; default : height = width * aspectRatio . wide ; } return { width : width , height : height } ; }
TODO: jsDocify this if it works 
see [ChartConfig#calculateDimensions](#chartconfig/calculatedimensions)
@see ChartConfig#calculateDimensions
@instance
@memberof xy_config
TODO : jsDocify this if it works see [ ChartConfig#calculateDimensions ] ( #chartconfig / calculatedimensions )