as1.setDataSet( orthoValues1 ); as1.setTranslucent( true ); as1.getLineAttributes( ).setColor( ColorDefinitionImpl.PINK( ) ); as1.getLineAttributes( ).setThickness( 5 );
as1.setDataSet( orthoValues1 );; as1.getLineAttributes( ).setVisible( false );
	public static final Chart createArea( )	{		ChartWithAxes cwa3DArea = ChartWithAxesImpl.create( );		cwa3DArea.setDimension( ChartDimension.THREE_DIMENSIONAL_LITERAL );		// Title		cwa3DArea.getBlock( ).setBackground( ColorDefinitionImpl.WHITE( ) );		cwa3DArea.getTitle( ).getLabel( ).getCaption( ).setValue( "3D Area Chart" );//$NON-NLS-1$		cwa3DArea.getTitle( ).setVisible( true );		// Legend		Legend lg = cwa3DArea.getLegend( );		LineAttributes lia = lg.getOutline( );		lg.getText( ).getFont( ).setSize( 16 );		lia.setStyle( LineStyle.SOLID_LITERAL );		lg.getInsets( ).set( 10, 5, 0, 0 );		lg.getOutline( ).setVisible( false );		lg.setAnchor( Anchor.NORTH_LITERAL );		// X-Axis		Axis xAxisPrimary = cwa3DArea.getPrimaryBaseAxes( )[0];		xAxisPrimary.setType( AxisType.TEXT_LITERAL );		xAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.BELOW_LITERAL );		xAxisPrimary.getMajorGrid( )				.setLineAttributes( LineAttributesImpl.create( ColorDefinitionImpl.BLUE( ),						LineStyle.SOLID_LITERAL,						1 ) );		xAxisPrimary.getMinorGrid( ).getLineAttributes( ).setVisible( true );		xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL );		// Y-Axis		Axis yAxisPrimary = cwa3DArea.getPrimaryOrthogonalAxis( xAxisPrimary );		yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL );		yAxisPrimary.getMajorGrid( )				.setLineAttributes( LineAttributesImpl.create( ColorDefinitionImpl.BLACK( ),						LineStyle.SOLID_LITERAL,						1 ) );		yAxisPrimary.getMinorGrid( ).getLineAttributes( ).setVisible( true );		yAxisPrimary.setPercent( false );		// 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[]{				"Jan.", "Feb.", "Mar.", "Apr", "May"} ); //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$//$NON-NLS-5$		NumberDataSet orthoValues1 = NumberDataSetImpl.create( new double[]{				14.32, -19.5, 8.38, 0.34, 9.22		} );		// 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		AreaSeries as1 = (AreaSeries) AreaSeriesImpl.create( );		as1.setSeriesIdentifier( "Series 1" );//$NON-NLS-1$		as1.setDataSet( orthoValues1 );		as1.setTranslucent( true );		as1.getLineAttributes( ).setColor( ColorDefinitionImpl.PINK( ) );		as1.getLineAttributes( ).setThickness( 5 );		as1.getLabel( ).setVisible( true );		SeriesDefinition sdY = SeriesDefinitionImpl.create( );		sdY.getSeriesPalette( ).update( -1 );		yAxisPrimary.getSeriesDefinitions( ).add( sdY );		sdY.getSeries( ).add( as1 );		// Z-Series		SeriesDefinition sdZ = SeriesDefinitionImpl.create( );		zAxis.getSeriesDefinitions( ).add( sdZ );		// Rotate the chart		cwa3DArea.setRotation( Rotation3DImpl.create( new Angle3D[]{			Angle3DImpl.create( -10, 25, 0 )		} ) );		return cwa3DArea;	}