p.getClientArea( ) .setBackground( GradientImpl.create( ColorDefinitionImpl.create( 225, 225, 255 ), ColorDefinitionImpl.create( 255, 255, 225 ), -35, false ) );
p.getClientArea( ).setBackground( ColorDefinitionImpl.create( 255, 255, 225 ) );
	public static final Chart createMultipleYSeries( )	{		ChartWithAxes cwaBar = ChartWithAxesImpl.create( );		// Plot		cwaBar.getBlock( ).setBackground( ColorDefinitionImpl.WHITE( ) );		Plot p = cwaBar.getPlot( );		p.getClientArea( )				.setBackground( GradientImpl.create( ColorDefinitionImpl.create( 225,						225,						255 ),						ColorDefinitionImpl.create( 255, 255, 225 ),						-35,						false ) );		p.getOutline( ).setVisible( true );		// Title		cwaBar.getTitle( )				.getLabel( )				.getCaption( )				.setValue( "Bar Chart with Multiple Y Series" );//$NON-NLS-1$		// Legend		Legend lg = cwaBar.getLegend( );		lg.getText( ).getFont( ).setBold( true );		lg.getInsets( ).set( 10, 5, 0, 0 );		lg.setAnchor( Anchor.NORTH_LITERAL );		// X-Axis		Axis xAxisPrimary = cwaBar.getPrimaryBaseAxes( )[0];		xAxisPrimary.setType( AxisType.TEXT_LITERAL );		xAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.BELOW_LITERAL );		xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL );		xAxisPrimary.setLabelPosition( Position.BELOW_LITERAL );		// Y-Axis		Axis yAxisPrimary = cwaBar.getPrimaryOrthogonalAxis( xAxisPrimary );		yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL );		// Data Set		TextDataSet categoryValues = TextDataSetImpl.create( new String[]{				"Europe", "Asia", "North America"} );//$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$		NumberDataSet orthoValues1 = NumberDataSetImpl.create( new double[]{				26.17, 34.21, 21.5		} );		NumberDataSet orthoValues2 = NumberDataSetImpl.create( new double[]{				4.81, 3.55, -5.26		} );		// X-Series		Series seCategory = SeriesImpl.create( );		seCategory.setDataSet( categoryValues );		SeriesDefinition sdX = SeriesDefinitionImpl.create( );		xAxisPrimary.getSeriesDefinitions( ).add( sdX );		sdX.getSeries( ).add( seCategory );		// Y-Series (1)		BarSeries bs = (BarSeries) BarSeriesImpl.create( );		bs.setSeriesIdentifier( "Sales" );//$NON-NLS-1$		bs.setDataSet( orthoValues1 );		bs.getLabel( ).setVisible( true );		bs.setLabelPosition( Position.INSIDE_LITERAL );		SeriesDefinition sdY1 = SeriesDefinitionImpl.create( );		sdY1.getSeriesPalette( ).update( -2 );		yAxisPrimary.getSeriesDefinitions( ).add( sdY1 );		sdY1.getSeries( ).add( bs );		// Y-Series (2)		BarSeries bs2 = (BarSeries) BarSeriesImpl.create( );		bs2.setSeriesIdentifier( "Net Profit" );//$NON-NLS-1$		bs2.setDataSet( orthoValues2 );		bs2.getLabel( ).setVisible( true );		bs2.setLabelPosition( Position.INSIDE_LITERAL );		SeriesDefinition sdY2 = SeriesDefinitionImpl.create( );		sdY2.getSeriesPalette( ).update( -3 );		yAxisPrimary.getSeriesDefinitions( ).add( sdY2 );		sdY2.getSeries( ).add( bs2 );		return cwaBar;	}