ls1.getMarker( ).setType( MarkerType.BOX_LITERAL );
for ( int i = 0; i < ls1.getMarkers( ).size( ); i++ ) { ( (Marker) ls1.getMarkers( ).get( i ) ).setType( MarkerType.BOX_LITERAL); }
	public static final Chart createStackedChart( )	{		ChartWithAxes cwaCombination = ChartWithAxesImpl.create( );		// Plot		cwaCombination.setUnitSpacing( 25 );		cwaCombination.getBlock( ).setBackground( ColorDefinitionImpl.WHITE( ) );		Plot p = cwaCombination.getPlot( );		p.getClientArea( )				.setBackground( GradientImpl.create( ColorDefinitionImpl.create( 255,						235,						255 ),						ColorDefinitionImpl.create( 255, 255, 225 ),						-35,						false ) );		p.getClientArea( ).getInsets( ).set( 8, 8, 8, 8 );		p.getOutline( ).setVisible( true );		// Legend		Legend lg = cwaCombination.getLegend( );		lg.setBackground( ColorDefinitionImpl.YELLOW( ) );		lg.getOutline( ).setVisible( true );		// Title		cwaCombination.getTitle( )				.getLabel( )				.getCaption( )				.setValue( "Project Sales" );//$NON-NLS-1$ 		// X-Axis		Axis xAxisPrimary = cwaCombination.getPrimaryBaseAxes( )[0];		xAxisPrimary.setType( AxisType.TEXT_LITERAL );		xAxisPrimary.getLabel( )				.setBackground( ColorDefinitionImpl.create( 255, 255, 235 ) );		xAxisPrimary.getLabel( )				.setShadowColor( ColorDefinitionImpl.create( 225, 225, 225 ) );		xAxisPrimary.getLabel( ).getCaption( ).getFont( ).setRotation( 25 );		xAxisPrimary.getOrigin( ).setType( IntersectionType.VALUE_LITERAL );		xAxisPrimary.setTitlePosition( Position.BELOW_LITERAL );		xAxisPrimary.setLabelPosition( Position.BELOW_LITERAL );		xAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.BELOW_LITERAL );		xAxisPrimary.getMajorGrid( )				.getLineAttributes( )				.setStyle( LineStyle.DOTTED_LITERAL );		xAxisPrimary.getMajorGrid( )				.getLineAttributes( )				.setColor( ColorDefinitionImpl.create( 64, 64, 64 ) );		xAxisPrimary.getMajorGrid( ).getLineAttributes( ).setVisible( true );		xAxisPrimary.getTitle( ).getCaption( ).setValue( "Computer Components" );//$NON-NLS-1$ 		xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL );		xAxisPrimary.getMinorGrid( )				.getLineAttributes( )				.setColor( ColorDefinitionImpl.CYAN( ) );		xAxisPrimary.getMinorGrid( ).getLineAttributes( ).setVisible( true );		// Y-Series		Axis yAxisPrimary = cwaCombination.getPrimaryOrthogonalAxis( xAxisPrimary );		yAxisPrimary.setLabelPosition( Position.LEFT_LITERAL );		yAxisPrimary.setTitlePosition( Position.LEFT_LITERAL );		yAxisPrimary.getTitle( )				.getCaption( )				.setValue( "Actual Sales ($Millions)" );//$NON-NLS-1$ 		yAxisPrimary.setType( AxisType.LINEAR_LITERAL );		yAxisPrimary.getLabel( ).getCaption( ).getFont( ).setRotation( 37 );		yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL );		yAxisPrimary.getMajorGrid( )				.getLineAttributes( )				.setStyle( LineStyle.DOTTED_LITERAL );		yAxisPrimary.getMajorGrid( )				.getLineAttributes( )				.setColor( ColorDefinitionImpl.RED( ) );		yAxisPrimary.getMajorGrid( ).getLineAttributes( ).setVisible( true );		yAxisPrimary.getMinorGrid( ).setTickStyle( TickStyle.ACROSS_LITERAL );		yAxisPrimary.getMinorGrid( )				.getLineAttributes( )				.setStyle( LineStyle.DOTTED_LITERAL );		yAxisPrimary.getMinorGrid( )				.getLineAttributes( )				.setColor( ColorDefinitionImpl.GREEN( ) );		// Data Set		String[] saTextValues = {				"CPUs", "Keyboards", "Video Cards",//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 				"Monitors", "Motherboards", "Memory", "Storage Devices",//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$				"Media", "Printers", "Scanners"};//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 		TextDataSet categoryValues = TextDataSetImpl.create( saTextValues );		NumberDataSet seriesOneValues = NumberDataSetImpl.create( new double[]{				56.99,				352.95,				201.95,				299.95,				95.95,				25.45,				129.33,				26.5,				43.5,				122		} );		NumberDataSet seriesTwoValues = NumberDataSetImpl.create( new double[]{				20, 35, 59, 105, 150, 37, 65, 99, 145, 185		} );		NumberDataSet seriesThreeValues = NumberDataSetImpl.create( new double[]{				54.99, 21, 75.95, 39.95, 7.95, 91.22, 33.45, 25.63, 40, 13		} );		NumberDataSet seriesFourValues = NumberDataSetImpl.create( new double[]{				15, 45, 43, 5, 19, 25, 35, 94, 15, 55		} );		NumberDataSet seriesFiveValues = NumberDataSetImpl.create( new double[]{				43, 65, 35, 41, 45, 55, 29, 15, 85, 65		} );		NumberDataSet seriesSixValues = NumberDataSetImpl.create( new double[]{				15, 45, 43, 5, 19, 25, 35, 94, 15, 55		} );		NumberDataSet seriesSevenValues = NumberDataSetImpl.create( new double[]{				43, 65, 35, 41, 45, 55, 29, 15, 85, 65		} );		// X-Series		Series seCategory = SeriesImpl.create( );		seCategory.setDataSet( categoryValues );		SeriesDefinition sdX = SeriesDefinitionImpl.create( );		xAxisPrimary.getSeriesDefinitions( ).add( sdX );		sdX.getSeries( ).add( seCategory );		// Y-Series		BarSeries bs1 = (BarSeries) BarSeriesImpl.create( );		bs1.setSeriesIdentifier( "North America" );//$NON-NLS-1$		bs1.setDataSet( seriesOneValues );		bs1.setRiserOutline( null );		bs1.setRiser( RiserType.RECTANGLE_LITERAL );		bs1.setStacked( true );		DataPoint dp = DataPointImpl.create( "(", ")", ", " );//$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$		dp.getComponents( ).clear( );		dp.getComponents( )				.add( DataPointComponentImpl.create( DataPointComponentType.BASE_VALUE_LITERAL,						null ) );		dp.getComponents( )				.add( DataPointComponentImpl.create( DataPointComponentType.ORTHOGONAL_VALUE_LITERAL,						JavaNumberFormatSpecifierImpl.create( "0.00" ) ) );//$NON-NLS-1$		bs1.setDataPoint( dp );		BarSeries bs2 = (BarSeries) BarSeriesImpl.create( );		bs2.setSeriesIdentifier( "South America" );//$NON-NLS-1$		bs2.setDataSet( seriesThreeValues );		bs2.setRiserOutline( null );		bs2.setRiser( RiserType.RECTANGLE_LITERAL );		bs2.setStacked( true );		dp = DataPointImpl.create( "[", "]", ", " );//$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$		bs2.setDataPoint( dp );		BarSeries bs3 = (BarSeries) BarSeriesImpl.create( );		bs3.setSeriesIdentifier( "Eastern Europe" );//$NON-NLS-1$		bs3.setDataSet( seriesFourValues );		bs3.setRiserOutline( null );		bs3.setRiser( RiserType.RECTANGLE_LITERAL );		bs3.setStacked( true );		BarSeries bs4 = (BarSeries) BarSeriesImpl.create( );		bs4.setSeriesIdentifier( "Western Europe" );//$NON-NLS-1$		bs4.setDataSet( seriesFiveValues );		bs4.setRiserOutline( null );		bs4.setRiser( RiserType.RECTANGLE_LITERAL );		bs4.setStacked( true );		BarSeries bs5 = (BarSeries) BarSeriesImpl.create( );		bs5.setSeriesIdentifier( "Asia" );//$NON-NLS-1$		bs5.setDataSet( seriesSixValues );		bs5.setRiserOutline( null );		bs5.setRiser( RiserType.RECTANGLE_LITERAL );		BarSeries bs6 = (BarSeries) BarSeriesImpl.create( );		bs6.setSeriesIdentifier( "Australia" );//$NON-NLS-1$		bs6.setDataSet( seriesSevenValues );		bs6.setRiserOutline( null );		bs6.setRiser( RiserType.RECTANGLE_LITERAL );		LineSeries ls1 = (LineSeries) LineSeriesImpl.create( );		ls1.setSeriesIdentifier( "Expected Growth" );//$NON-NLS-1$		ls1.setDataSet( seriesTwoValues );		ls1.getMarker( ).setType( MarkerType.BOX_LITERAL );		ls1.getLabel( ).setVisible( true );		SeriesDefinition sdY1 = SeriesDefinitionImpl.create( );		sdY1.getSeriesPalette( ).update( 0 );		yAxisPrimary.getSeriesDefinitions( ).add( sdY1 );		SeriesDefinition sdY2 = SeriesDefinitionImpl.create( );		sdY2.getSeriesPalette( ).update( 1 );		yAxisPrimary.getSeriesDefinitions( ).add( sdY2 );		SeriesDefinition sdY3 = SeriesDefinitionImpl.create( );		sdY3.getSeriesPalette( ).update( ColorDefinitionImpl.RED( ) );		yAxisPrimary.getSeriesDefinitions( ).add( sdY3 );		SeriesDefinition sdY4 = SeriesDefinitionImpl.create( );		sdY4.getSeriesPalette( ).update( ColorDefinitionImpl.GREEN( ) );		yAxisPrimary.getSeriesDefinitions( ).add( sdY4 );		SeriesDefinition sdY5 = SeriesDefinitionImpl.create( );		sdY5.getSeriesPalette( ).update( ColorDefinitionImpl.YELLOW( ) );		yAxisPrimary.getSeriesDefinitions( ).add( sdY5 );		sdY1.getSeries( ).add( bs1 );		sdY1.getSeries( ).add( bs2 );		sdY2.getSeries( ).add( bs3 );		sdY2.getSeries( ).add( bs4 );		sdY3.getSeries( ).add( bs5 );		sdY4.getSeries( ).add( bs6 );		sdY5.getSeries( ).add( ls1 );		return cwaCombination;	}