xAxisPrimary.setFormatSpecifier( JavaDateFormatSpecifierImpl.create( "MM/dd/yyyy" ) );
	public final static Chart createBarStickStock( )	{		ChartWithAxes cwaStock = ChartWithAxesImpl.create( );		cwaStock.setSubType( "Bar Stick Stock Chart" ); //$NON-NLS-1$		// Title		cwaStock.getTitle( ).getLabel( ).getCaption( ).setValue( "Bar-stick Stock Chart" );//$NON-NLS-1$		//Legend		cwaStock.getLegend( ).setVisible( false );		// X-Axis		Axis xAxisPrimary = ( (ChartWithAxesImpl) cwaStock ).getPrimaryBaseAxes( )[0];		xAxisPrimary.getLabel( )				.getCaption( )				.setColor( ColorDefinitionImpl.RED( ) );		xAxisPrimary.getLabel( ).getCaption( ).getFont( ).setRotation( 30 );		xAxisPrimary.setLabelPosition( Position.ABOVE_LITERAL );		xAxisPrimary.setType( AxisType.DATE_TIME_LITERAL );		xAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL );		xAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.ABOVE_LITERAL );		xAxisPrimary.getMajorGrid( )				.getLineAttributes( )				.setColor( ColorDefinitionImpl.create( 255, 196, 196 ) );		xAxisPrimary.getMajorGrid( )				.getLineAttributes( )				.setStyle( LineStyle.DOTTED_LITERAL );		xAxisPrimary.getMajorGrid( ).getLineAttributes( ).setVisible( true );		xAxisPrimary.setCategoryAxis( true );		// Y-Axis		Axis yAxisPrimary = ( (ChartWithAxesImpl) cwaStock ).getPrimaryOrthogonalAxis( xAxisPrimary );		yAxisPrimary.getScale( ).setMin( NumberDataElementImpl.create( 24.5 ) );		yAxisPrimary.getScale( ).setMax( NumberDataElementImpl.create( 27.5 ) );		yAxisPrimary.getScale( ).setStep( 0.5 );		yAxisPrimary.getMajorGrid( )				.getLineAttributes( )				.setColor( ColorDefinitionImpl.create( 196, 196, 255 ) );		yAxisPrimary.getMajorGrid( )				.getLineAttributes( )				.setStyle( LineStyle.DOTTED_LITERAL );		yAxisPrimary.getMajorGrid( ).getLineAttributes( ).setVisible( true );		yAxisPrimary.getMajorGrid( ).setTickStyle( TickStyle.LEFT_LITERAL );		yAxisPrimary.setType( AxisType.LINEAR_LITERAL );		yAxisPrimary.getOrigin( ).setType( IntersectionType.MIN_LITERAL );		// Data Set		DateTimeDataSet dsDateValues = DateTimeDataSetImpl.create( new Calendar[]{				new CDateTime( 2004, 12, 27 ),				new CDateTime( 2004, 12, 23 ),				new CDateTime( 2004, 12, 22 ),				new CDateTime( 2004, 12, 21 ),				new CDateTime( 2004, 12, 20 ),				new CDateTime( 2004, 12, 17 ),				new CDateTime( 2004, 12, 16 ),				new CDateTime( 2004, 12, 15 )		} );		StockDataSet dsStockValues = StockDataSetImpl.create( new StockEntry[]{				new StockEntry( 27.01, 27.10, 26.82, 26.85 ),				new StockEntry( 26.87, 27.15, 26.83, 27.01 ),				new StockEntry( 26.84, 27.15, 26.78, 26.97 ),				new StockEntry( 27.00, 27.17, 26.94, 27.07 ),				new StockEntry( 27.01, 27.15, 26.89, 26.95 ),				new StockEntry( 27.00, 27.32, 26.80, 26.96 ),				new StockEntry( 27.15, 27.28, 27.01, 27.16 ),				new StockEntry( 27.22, 27.40, 27.07, 27.11 ),		} );		// X-Series		Series seBase = SeriesImpl.create( );		seBase.setDataSet( dsDateValues );		SeriesDefinition sdX = SeriesDefinitionImpl.create( );		sdX.getSeriesPalette( ).update( -1 );		xAxisPrimary.getSeriesDefinitions( ).add( sdX );		sdX.getSeries( ).add( seBase );		// Y-Series		StockSeries ss = (StockSeries) StockSeriesImpl.create( );		ss.setShowAsBarStick( true );		ss.getLineAttributes( ).setColor( ColorDefinitionImpl.BLUE( ) );		ss.setDataSet( dsStockValues );		SeriesDefinition sdY = SeriesDefinitionImpl.create( );		sdY.getSeriesPalette( ).update( ColorDefinitionImpl.CYAN( ) );		yAxisPrimary.getSeriesDefinitions( ).add( sdY );		sdY.getSeries( ).add( ss );		return cwaStock;	}