Bug 417305 A sample chart has no data
chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/view/models/WorkingWithBIRTDataEngine.java
Legend lg = cwaBar.getLegend( );
		lg.setItemType( LegendItemType.CATEGORIES_LITERAL );
		
		Axis xAxisPrimary = cwaBar.getPrimaryBaseAxes( )[0];
		xAxisPrimary.setType( AxisType.TEXT_LITERAL );
		xAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.BELOW_LITERAL );
		xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL );
		
		Axis yAxisPrimary = cwaBar.getPrimaryOrthogonalAxis( xAxisPrimary );
		yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL );
		yAxisPrimary.setType( AxisType.LINEAR_LITERAL );
		yAxisPrimary.getLabel( ).getCaption( ).getFont( ).setRotation( 90 );
		yAxisPrimary.getTitle( ).setVisible( true );
		yAxisPrimary.getTitle( ).getCaption( ).setValue( "Customer Amount" ); 
		yAxisPrimary.getTitle( )
				.getCaption( )
				.setColor( ColorDefinitionImpl.GREEN( ) );
		
		Series seCategory = SeriesImpl.create( );
		
		
		seCategory.getDataDefinition( )
				.add( QueryImpl.create( expressions[0] ) );
		SeriesDefinition sdX = SeriesDefinitionImpl.create( );
		sdX.getSeriesPalette( ).shift( 0 );
		
		SeriesGrouping grouping = sdX.getGrouping( );
		grouping.setEnabled( true );
		grouping.setGroupType( DataType.TEXT_LITERAL );