Bug 182270 Sample Data issue [0001]
Description: Sample Data issue. Build number: 2.2.0.v20070413-1121 Steps to reproduce: 1. Drag a chart from Palette to Layout, first setlect type as Gantt, then change back to Bar,check the "Chart Preview" pane. Expected result: Y Axis is still of linear type. Actual result: Y Axis is of Date/Time type. Error log: N/A
chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
sdY.getSeriesPalette( ).shift( 0 );
			Series valueSeries = LineSeriesImpl.create( );
			( (Marker) ( (LineSeries) valueSeries ).getMarkers( ).get( 0 ) ).setVisible( true );
			( (LineSeries) valueSeries ).setStacked( false );
			( (LineSeries) valueSeries ).setPaletteLineColor( true );
			sdY.getSeries( ).add( valueSeries );
			( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( )
					.get( 0 ) ).getSeriesDefinitions( ).add( sdY );
		}
		if ( sDimension.equals( THREE_DIMENSION_TYPE ) )
		{
			newChart.setRotation( Rotation3DImpl.create( new Angle3D[]{
				Angle3DImpl.create( -20, 45, 0 )
			} ) );
			newChart.setUnitSpacing( 50 );
			newChart.getPrimaryBaseAxes( )[0].getAncillaryAxes( ).clear( );
			Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE );
			zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL );
			zAxisAncillary.getTitle( )
					.getCaption( )
					.setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); 
			zAxisAncillary.getTitle( ).setVisible( true );
			zAxisAncillary.setPrimaryAxis( true );
			zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL );
			zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL );
			zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL );
			zAxisAncillary.getOrigin( )
					.setValue( NumberDataElementImpl.create( 0 ) );
			zAxisAncillary.getTitle( ).setVisible( false );
			zAxisAncillary.setType( AxisType.TEXT_LITERAL );