This is an example class that creates a report that uses a scripted data source and a Gantt chart.<br />
<br />
For 3.7.1 and higher remove the setBirtHome and add the height and width for the chart bounds:
ChartWithAxes cwaGantt = ChartWithAxesImpl.create( );
cwaGantt.setType( "Gantt Chart" ); //$NON-NLS-1$
cwaGantt.setSubType( "Standard Gantt Chart" ); //$NON-NLS-1$
cwaGantt.setOrientation( Orientation.HORIZONTAL_LITERAL );
cwaGantt.getBlock().getBounds().setWidth(600);
cwaGantt.getBlock().getBounds().setHeight(400);