Bug 212371 [Regression] Auto-scale does not work correctly and gridline is not shown anymore when run the attached java file [13]
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java
{
			
			sct = new ScaleContext( iMarginPercent,
					iType,
					oMinValue,
					oMaxValue,
					oStep );
		}
		sct.setFixedValue( bMinimumFixed, bMaximumFixed, oMinimum, oMaximum );
		sct.setFixedStep( bStepFixed, oStepNumber );
		sct.computeMinMax( );
		updateContext( sct );
		if ( rtc.getScale( ) != null )
		{
			
			rtc.setScale( sct );
		}
	}
	private final void updateContext( ScaleContext sct )
	{
		this.oMaximum = sct.getMax( );
		this.oMinimum = sct.getMin( );
		this.oMaximumWithMargin = sct.getMaxWithMargin( );
		this.oMinimumWithMargin = sct.getMinWithMargin( );
		this.oStep = sct.getStep( );
	}
	Object getMinWithMargin( )
	{
		return this.oMinimumWithMargin;
	}