Bug 189607 2D+ Curve Fitting Line does not work correctly [0001]
Description: 2D+ Curve Fitting Line does not work correctly. Build number: 2.2.0.v20070529-1039 Steps to reproduce: 1. Preview the attached design file. Expected result: Curve Fitting Line for 2D+ works corrctly. Actual result: See the screenshot. Error log: N/A
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
ScriptHandler.callFunction( getRunTimeContext( ).getScriptHandler( ),
					ScriptHandler.BEFORE_DRAW_FITTING_CURVE,
					curve,
					getRunTimeContext( ).getScriptContext( ) );
			getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_FITTING_CURVE,
					curve );
			
			double[] xArray = new double[points.length];
			double[] yArray = new double[points.length];
			for ( int i = 0; i < xArray.length; i++ )
			{
				xArray[i] = points[i].getX( );
				yArray[i] = points[i].getY( );
			}
			sort( xArray, yArray, !isTransposed );
			double[] baseArray = xArray, orthogonalArray = yArray;
			if ( isTransposed )
			{
				baseArray = yArray;
				orthogonalArray = xArray;
			}
			FittingCalculator fc = new FittingCalculator( baseArray,
					orthogonalArray,
					0.33 );
			double[] fitYarray = fc.getFittedValue( );
			orthogonalArray = fitYarray;
			if ( isTransposed )
			{
				baseArray = fitYarray;
				orthogonalArray = yArray;