Bug 213810 [2.2.2 acceptance] Error occurs when create a third axis.
description: Error occurs when create a third axis. build version: 2.2.2 v20071224-1008 steps to reproduce: 1. New a report. 2. New a datasource with sample DB and new a dataset with table payments. 3. New bar chart. 4. On Select Chart Type page, select Multi-Y Axis as More Axes. 5. On Select Data page, bind the dataset, select customernumber as Series1 of Axis1, create a secondary Axis, select PAYMENTDATE as Series1 of Axis2, create a third Axis. Expected result: The third Axis should be created correctly. Actual result: Error occurs: Unable to use a non-datetime data to render a datetime axis.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith2DAxes.java
{
				int year = Calendar.getInstance( ).get( Calendar.YEAR );
				oMin = new CDateTime( year, 1, 1 );
				oMax = new CDateTime( year, 12, 31 );
			}
			else if ( ( iType & NUMERICAL ) == NUMERICAL )
			{
				if ( ( iType & PERCENT ) == PERCENT )
				{
					oMin = new Double( 0 );
					oMax = new Double( 100 );
				}
				else if ( ( iType & LOGARITHMIC ) == LOGARITHMIC )
				{
					oMin = new Double( 1 );
					oMax = new Double( 1000 );
				}
				else
				{
					oMin = new Double( -1 );
					oMax = new Double( 1 );
				}
			}
		}
		if ( iType == DATE_TIME )
		{
			try
			{
				CDateTime dtMin = asDateTime( oMin );
				CDateTime dtMax = asDateTime( oMax );