as.getLineAttributes( ).setColor( ColorDefinitionImpl.PINK( ) ); as.getLineAttributes( ).setThickness( 5 );
as.getLineAttributes( ).setVisible( false );
	public static final Chart createCurveFittingArea( )	{		ChartWithAxes cwaArea = ChartWithAxesImpl.create( );		// Plot/Title		cwaArea.getBlock( ).setBackground( ColorDefinitionImpl.WHITE( ) );		cwaArea.getPlot( ).getClientArea( ).setBackground( ColorDefinitionImpl.create( 255,				255,				225 ) );		cwaArea.getTitle( ).getLabel( ).getCaption( ).setValue( "Curve Fitting Area Chart" );//$NON-NLS-1$		cwaArea.getTitle( ).setVisible( true );		// Legend		cwaArea.getLegend( ).setVisible( false );		// X-Axis		Axis xAxisPrimary = cwaArea.getPrimaryBaseAxes( )[0];		xAxisPrimary.setType( AxisType.TEXT_LITERAL );		xAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.BELOW_LITERAL );		xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL );		// Y-Axis		Axis yAxisPrimary = cwaArea.getPrimaryOrthogonalAxis( xAxisPrimary );		yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL );		// 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 orthoValues = 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 as = (AreaSeries) AreaSeriesImpl.create( );		as.setDataSet( orthoValues );		as.getLineAttributes( ).setColor( ColorDefinitionImpl.PINK( ) );		as.getLineAttributes( ).setThickness( 5 );		as.getLabel( ).setVisible( true );		as.setTranslucent( true );		as.setCurve( true );		SeriesDefinition sdY = SeriesDefinitionImpl.create( );		sdY.getSeriesPalette( ).update( -1 );		yAxisPrimary.getSeriesDefinitions( ).add( sdY );		sdY.getSeries( ).add( as );		return cwaArea;	}