Bug 208449 crosstab/chart integration framework
In order to enable charts inside crosstab, some specific logic needs to be written for that particular scenario. This enhancement aims to - Design how to add this new logic in a modular way by either creating a new plugin org.eclipse.birt.chart.reportitem.crosstab (needs extension?) or using OO design. - Implement the framework structure that will contain the business logic to render charts in crosstabs.
chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemPresentationImpl.java
final String sScriptContent = cm.getScript( );
				if ( externalContext != null
						&& externalContext.getScriptable( ) != null )				
				{
					sh.init( externalContext.getScriptable( ) );
				}
				else
				{
					sh.init( null );
				}
				sh.setRunTimeModel( cm );
				if ( sScriptContent != null
						&& sScriptContent.length( ) > 0
						&& rtc.isScriptingEnabled( ) )
				{
					sh.register( sScriptContent );
				}
			}
			
			BIRTDataRowEvaluator rowAdapter = new BIRTDataRowEvaluator( rowSet );
			Generator.instance( ).bindData( rowAdapter,
					new BIRTActionEvaluator( ),
					cm,
					rtc );
			logger.log( ILogger.INFORMATION,
					Messages.getString( "ChartReportItemPresentationImpl.log.onRowSetsBuilding" ) ); 
			
			idr = ChartEngine.instance( ).getRenderer( "dv." 
					+ sExtension.toUpperCase( Locale.US ) );