Bug 214197 [Regression] Auto scale does not work correctly [13]
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java
}
			else
			{
				iUnit = CDateTime.getPreferredUnit( (CDateTime) oMinValue,
						(CDateTime) oMaxValue );
			}
			
			if ( iUnit == 0 )
				iUnit = CDateTime.SECOND;
			CDateTime cdtMinAxis = ( (CDateTime) oMinValue ).backward( iUnit, 1 );
			CDateTime cdtMaxAxis = ( (CDateTime) oMaxValue ).forward( iUnit, 1 );
			cdtMinAxis.clearBelow( iUnit );
			cdtMaxAxis.clearBelow( iUnit );
			sc = new AutoScale( DATE_TIME, cdtMinAxis, cdtMaxAxis );
			sc.oStep = new Integer( 1 );
			sc.oStepNumber = oStepNumber;
			sc.oUnit = new Integer( iUnit );
			sc.setDirection( direction );
			sc.fs = fs; 
			sc.rtc = rtc; 
			sc.bAxisLabelStaggered = ax.isAxisLabelStaggered( );
			sc.iLabelShowingInterval = ax.getLableShowingInterval( );
			sc.bTickBetweenCategories = ax.isTickBwtweenCategories( );
			sc.dZoomFactor = zoomFactor;
			sc.iMarginPercent = iMarginPercent;
			
			if ( oMinimum != null )
			{
				if ( oMinimum instanceof DateTimeDataElement )
				{