lg.getText( ).getFont( ).setSize( 16 );
	protected static Chart createBarChart( )	{		ChartWithAxes cwaBar = ChartWithAxesImpl.create( );		// Plot		cwaBar.getBlock( ).setBackground( ColorDefinitionImpl.WHITE( ) );		cwaBar.getBlock( ).getOutline( ).setVisible( true );		Plot p = cwaBar.getPlot( );		p.getClientArea( ).setBackground( ColorDefinitionImpl.create( 255,				255,				225 ) );		p.getOutline( ).setVisible( false );		// Title		cwaBar.getTitle( ).getLabel( ).getCaption( ).setValue( "Bar Chart" ); //$NON-NLS-1$		// Legend		Legend lg = cwaBar.getLegend( );		lg.getText( ).getFont( ).setSize( 16 );		lg.setItemType( LegendItemType.CATEGORIES_LITERAL );		// X-Axis		Axis xAxisPrimary = cwaBar.getPrimaryBaseAxes( )[0];		xAxisPrimary.setType( AxisType.TEXT_LITERAL );		xAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.BELOW_LITERAL );		xAxisPrimary.getTitle( ).setVisible( true );		// Y-Axis		Axis yAxisPrimary = cwaBar.getPrimaryOrthogonalAxis( xAxisPrimary );		yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL );		yAxisPrimary.setType( AxisType.LINEAR_LITERAL );		yAxisPrimary.getLabel( ).getCaption( ).getFont( ).setRotation( 90 );		// Data Set		TextDataSet categoryValues = TextDataSetImpl.create( new String[]{				"Item 1", "Item 2", "Item 3"} ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$		NumberDataSet orthoValues = NumberDataSetImpl.create( new double[]{				25, 35, 15		} );		// X-Series		Series seCategory = SeriesImpl.create( );		seCategory.setDataSet( categoryValues );		SeriesDefinition sdX = SeriesDefinitionImpl.create( );		sdX.getSeriesPalette( ).update( 0 );		xAxisPrimary.getSeriesDefinitions( ).add( sdX );		sdX.getSeries( ).add( seCategory );		// Y-Series		BarSeries bs = (BarSeries) BarSeriesImpl.create( );		bs.setDataSet( orthoValues );		bs.setRiserOutline( null );		bs.getLabel( ).setVisible( true );		bs.setLabelPosition( Position.INSIDE_LITERAL );		SeriesDefinition sdY = SeriesDefinitionImpl.create( );		yAxisPrimary.getSeriesDefinitions( ).add( sdY );		sdY.getSeries( ).add( bs );		return cwaBar;	}