String valuePattern = sc.getNumericPattern( dAxisValue ); String stepPattern = sc.getNumericPattern( dAxisStep ); if ( valuePattern.length( ) < stepPattern.length( ) ) { valuePattern = stepPattern; }   int iPoint = valuePattern.indexOf( '.' ); if ( iPoint >= 0 && valuePattern.length( ) - iPoint > 4 ) { valuePattern = valuePattern.substring( 0, iPoint + 4 ); } df = new DecimalFormat( valuePattern );
df = sc.computeDecimalFormat( dAxisValue, dAxisStep );
		public void initialize( ) throws ChartException		{			dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( );			dAxisStep = Methods.asDouble( sc.getStep( ) ).doubleValue( );			if ( fs == null )			{				// Use a more precise pattern				String valuePattern = sc.getNumericPattern( dAxisValue );				String stepPattern = sc.getNumericPattern( dAxisStep );				if ( valuePattern.length( ) < stepPattern.length( ) )				{					valuePattern = stepPattern;				}								// Use 3 digits as default precision				int iPoint = valuePattern.indexOf( '.' );				if ( iPoint >= 0 && valuePattern.length( ) - iPoint > 4 )				{					valuePattern = valuePattern.substring( 0, iPoint + 4 );				}				df = new DecimalFormat( valuePattern );			}		}