double dValue, dMinValue = Double.MAX_VALUE, dMaxValue = Double.MIN_VALUE;
double dValue, dMinValue = Double.MAX_VALUE, dMaxValue = -Double.MAX_VALUE;
	final Object[] getMinMax( ) throws ChartException	{		Object oValue = null;		try		{			if ( ( iType & NUMERICAL ) == NUMERICAL )			{				double dValue, dMinValue = Double.MAX_VALUE, dMaxValue = Double.MIN_VALUE;				dsiData.reset( );				while ( dsiData.hasNext( ) )				{					oValue = dsiData.next( );					if ( oValue == null ) // NULL VALUE CHECK					{						continue;					}					dValue = ( (Double) oValue ).doubleValue( );					if ( dValue < dMinValue )						dMinValue = dValue;					if ( dValue > dMaxValue )						dMaxValue = dValue;				}				return new Object[]{						new Double( dMinValue ), new Double( dMaxValue )				};			}			else if ( ( iType & DATE_TIME ) == DATE_TIME )			{				Calendar cValue;				Calendar caMin = null, caMax = null;				dsiData.reset( );				while ( dsiData.hasNext( ) )				{					oValue = dsiData.next( );					cValue = (Calendar) oValue;					if ( caMin == null )					{						caMin = cValue;					}					if ( caMax == null )					{						caMax = cValue;					}					if ( cValue == null ) // NULL VALUE CHECK					{						continue;					}					if ( cValue.before( caMin ) )						caMin = cValue;					else if ( cValue.after( caMax ) )						caMax = cValue;				}				return new Object[]{						new CDateTime( caMin ), new CDateTime( caMax )				};			}		}		catch ( ClassCastException ex )		{			throw new ChartException( ChartEnginePlugin.ID,					ChartException.GENERATION,					"exception.invalid.axis.data.type", //$NON-NLS-1$					new Object[]{						oValue					},					ResourceBundle.getBundle( Messages.ENGINE, rtc.getLocale( ) ) );		}		return null;	}