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 createLiveChart( )	{		ChartWithAxes cwaBar = ChartWithAxesImpl.create( );		//Plot		cwaBar.getBlock( ).setBackground( ColorDefinitionImpl.WHITE( ) );		Plot p = cwaBar.getPlot( );		p.getClientArea( ).setBackground( ColorDefinitionImpl.create( 255,				255,				225 ) );		//Legend		Legend lg = cwaBar.getLegend( );		LineAttributes lia = lg.getOutline( );		lg.getText( ).getFont( ).setSize( 16 );		lia.setStyle( LineStyle.SOLID_LITERAL );		lg.getInsets( ).setLeft( 10 );		lg.getInsets( ).setRight( 10 );		//Title		cwaBar.getTitle( )				.getLabel( )				.getCaption( )				.setValue( "Live Chart Demo" );//$NON-NLS-1$		//X-Axis		Axis xAxisPrimary = cwaBar.getPrimaryBaseAxes( )[0];		xAxisPrimary.setType( AxisType.TEXT_LITERAL );		xAxisPrimary.getOrigin( ).setType( IntersectionType.VALUE_LITERAL );		xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL );		xAxisPrimary.getTitle( )				.getCaption( )				.setValue( "Category Text X-Axis" );//$NON-NLS-1$		xAxisPrimary.setTitlePosition( Position.BELOW_LITERAL );		xAxisPrimary.getLabel( ).getCaption( ).getFont( ).setRotation( 75 );		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 );		//Y-Axis		Axis yAxisPrimary = cwaBar.getPrimaryOrthogonalAxis( xAxisPrimary );		yAxisPrimary.getLabel( ).getCaption( ).setValue( "Price Axis" );//$NON-NLS-1$		yAxisPrimary.getLabel( ).getCaption( ).getFont( ).setRotation( 37 );		yAxisPrimary.setLabelPosition( Position.LEFT_LITERAL );		yAxisPrimary.setTitlePosition( Position.LEFT_LITERAL );		yAxisPrimary.getTitle( ).getCaption( ).setValue( "Linear Value Y-Axis" );//$NON-NLS-1$		yAxisPrimary.setType( AxisType.LINEAR_LITERAL );		yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL );		yAxisPrimary.getMajorGrid( )				.getLineAttributes( )				.setStyle( LineStyle.DOTTED_LITERAL );		yAxisPrimary.getMajorGrid( )				.getLineAttributes( )				.setColor( ColorDefinitionImpl.RED( ) );		yAxisPrimary.getMajorGrid( ).getLineAttributes( ).setVisible( true );		//Associate with Data Set		TextDataSet categoryValues = TextDataSetImpl.create( sa );		NumberDataSet seriesOneValues = NumberDataSetImpl.create( da1 );		NumberDataSet seriesTwoValues = NumberDataSetImpl.create( da2 );		//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 bs1 = (BarSeries) BarSeriesImpl.create( );		bs1.setSeriesIdentifier( "Unit Price" );//$NON-NLS-1$		bs1.setDataSet( seriesOneValues );		bs1.setRiserOutline( null );		bs1.setRiser( RiserType.RECTANGLE_LITERAL );		//Y-Series (2)		LineSeries ls1 = (LineSeries) LineSeriesImpl.create( );		ls1.setSeriesIdentifier( "Quantity" );//$NON-NLS-1$		ls1.setDataSet( seriesTwoValues );		ls1.getLineAttributes( ).setColor( ColorDefinitionImpl.GREEN( ) );		ls1.getMarker( ).setType( MarkerType.BOX_LITERAL );		ls1.setCurve( true );		SeriesDefinition sdY = SeriesDefinitionImpl.create( );		yAxisPrimary.getSeriesDefinitions( ).add( sdY );		sdY.getSeriesPalette( ).update( 1 );		sdY.getSeries( ).add( bs1 );		sdY.getSeries( ).add( ls1 );		return cwaBar;	}