String[] seriesdata = new String[]{ iDSP.toString( columnData ) };   for ( int i = 0; i < seriesdata.length; i++ ) {   if ( i > 0 ) { sbData.append( "," ); } sbData.append( seriesdata[i] ); } return sbData.toString( );
return iDSP.toString( columnData );
	private String getDataForSeries( Series series ) throws ChartException	{		StringBuffer sbData = new StringBuffer( );		Class clSeries = series.getClass( );		IDataSetProcessor iDSP = PluginSettings.instance( )				.getDataSetProcessor( clSeries );		// String sFormat = iDSP.getExpectedStringFormat( );		int iSeriesComponents = series.getDataDefinition( ).size( );		// GET DATA FOR EACH COMPONENT...THE FIRST DIMENSION INDEX IN THE ARRAY		// REPRESENTS THE COMPONENT FOR WHICH THE DATA IN THE SECOND DIMENSION		// APPLIES		String[] exprArray = new String[iSeriesComponents];		for ( int i = 0; i < iSeriesComponents; i++ )		{			String sExpr = ""; //$NON-NLS-1$			try			{				sExpr = ( (Query) series.getDataDefinition( ).get( i ) ).getDefinition( );			}			catch ( Exception e )			{				// IF DATA FOR ALL THE COMPONENTS HAS NOT BEEN SPECIFIED...USE				// THE DATA FOR THE FIRST COMPONENT				sExpr = ( (Query) series.getDataDefinition( ).get( 0 ) ).getDefinition( );			}			exprArray[i] = sExpr;		}		Object[] columnData = getWizardContext( ).getDataServiceProvider( )				.getDataForColumns( exprArray, -1, true );		String[] seriesdata = new String[]{			iDSP.toString( columnData )		};		// BUILD THE STRING TO BE SET INTO THE SAMPLE DATA...NEEDS TO USE THE		// FORMAT RETURNED BY THE SERIES DATASETPROCESSOR		for ( int i = 0; i < seriesdata.length; i++ )		{			// TODO: HANDLE MULTIPLE COMPONENTS...AND USE THE STRING FORMAT			// INFORMATION!			if ( i > 0 )			{				sbData.append( "," ); //$NON-NLS-1$			}			sbData.append( seriesdata[i] );		}		return sbData.toString( );	}