BarSeries bs = (BarSeries) BarSeriesImpl.create( ); bs.setDataSet( orthoValues ); bs.getLabel( ).setVisible( true ); bs.setTranslucent( true ); bs.setLabelPosition( Position.OUTSIDE_LITERAL );
BarSeries bs1 = (BarSeries) BarSeriesImpl.create( ); bs1.setDataSet( orthoValues1 ); bs1.getLabel( ).setVisible( true ); bs1.setLabelPosition( Position.OUTSIDE_LITERAL );   BarSeries bs2 = (BarSeries) BarSeriesImpl.create( ); bs2.setDataSet( orthoValues2 ); bs2.getLabel( ).setVisible( true ); bs2.setLabelPosition( Position.OUTSIDE_LITERAL );
	public static final Chart createBar( )	{		ChartWithAxes cwaBar = ChartWithAxesImpl.create( );		cwaBar.setDimension( ChartDimension.THREE_DIMENSIONAL_LITERAL );		// Plot		cwaBar.getBlock( ).setBackground( ColorDefinitionImpl.WHITE( ) );		cwaBar.getBlock( ).getOutline( ).setVisible( true );		// Title		cwaBar.getTitle( ).getLabel( ).getCaption( ).setValue( "3D Bar Chart" );//$NON-NLS-1$		// Legend		cwaBar.getLegend( ).setItemType( LegendItemType.CATEGORIES_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 );		// Y-Axis		Axis yAxisPrimary = cwaBar.getPrimaryOrthogonalAxis( xAxisPrimary );		yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL );		yAxisPrimary.setType( AxisType.LINEAR_LITERAL );		yAxisPrimary.getLabel( ).getCaption( ).getFont( ).setRotation( 90 );		// Z-Axis		Axis zAxis = AxisImpl.create( Axis.ANCILLARY_BASE );		zAxis.setType( AxisType.TEXT_LITERAL );		zAxis.setLabelPosition( Position.BELOW_LITERAL );		zAxis.setTitlePosition( Position.BELOW_LITERAL );		zAxis.getMajorGrid( ).setTickStyle( TickStyle.BELOW_LITERAL );		zAxis.setOrientation( Orientation.HORIZONTAL_LITERAL );		xAxisPrimary.getAncillaryAxes( ).add( zAxis );		// 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.getLabel( ).setVisible( true );		bs.setTranslucent( true );		bs.setLabelPosition( Position.OUTSIDE_LITERAL );		SeriesDefinition sdY = SeriesDefinitionImpl.create( );		sdY.getSeriesPalette( ).update( -1 );		yAxisPrimary.getSeriesDefinitions( ).add( sdY );		sdY.getSeries( ).add( bs );		// Z-Series		SeriesDefinition sdZ = SeriesDefinitionImpl.create( );		zAxis.getSeriesDefinitions( ).add( sdZ );		// Rotate the chart		cwaBar.setRotation( Rotation3DImpl.create( new Angle3D[]{			Angle3DImpl.create( -10, 25, 0 )		} ) );		return cwaBar;	}