Bug 208373 Auto resize Chart to have a single axis without blank
When Chart is within Cross tab, chart axis image should have a single axis only, but there may be much blank in other area. Chart engine should auto resize the image to have the axis with fit size. Meanwhile, report engine should not set size for chart image.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/factory/Generator.java
public RunTimeContext prepare( Chart model,
			IExternalContext externalContext, IScriptClassLoader iscl,
			ULocale locale ) throws ChartException
	{
		RunTimeContext rtc = new RunTimeContext( );
		rtc.setScriptClassLoader( iscl );
		
		final Chart cmRunTime = (Chart) EcoreUtil.copy( model );
		rtc.setULocale( locale != null ? locale : ULocale.getDefault( ) );
		ChartScriptContext csc = new ChartScriptContext( );
		csc.setChartInstance( cmRunTime );
		csc.setExternalContext( externalContext );
		csc.setULocale( rtc.getULocale( ) );
		csc.setLogger( logger );
		rtc.setScriptContext( csc );
		ScriptHandler sh = new ScriptHandler( );
		rtc.setScriptHandler( sh );
		sh.setScriptClassLoader( iscl );
		sh.setScriptContext( csc );
		
		if ( externalContext != null
				&& externalContext.getScriptable( ) != null )
		{
			sh.init( externalContext.getScriptable( ) );
		}
		else
		{
			sh.init( null );
		}
		sh.setRunTimeModel( cmRunTime );