double data[] = {
NumberDataSet seriesValues = NumberDataSetImpl.create( new double[] {
	protected static final Chart createPercentageValueChart( )	{		ChartWithoutAxes cwoaPie = ChartWithoutAxesImpl.create( );		// Plot		cwoaPie.setSeriesThickness( 25 );		cwoaPie.getBlock( ).setBackground( ColorDefinitionImpl.WHITE( ) );		Plot p = cwoaPie.getPlot( );		p.getClientArea( ).setBackground( null );		p.getClientArea( ).getOutline( ).setVisible( true );		p.getOutline( ).setVisible( true );		// Legend		Legend lg = cwoaPie.getLegend( );		lg.getText( ).getFont( ).setSize( 16 );		lg.setBackground( null );		lg.getOutline( ).setVisible( true );		// Title		cwoaPie.getTitle( )				.getLabel( )				.getCaption( )				.setValue( "Pie Chart with Percentage Values" );//$NON-NLS-1$		cwoaPie.getTitle( ).getOutline( ).setVisible( true );		// Data Set		TextDataSet categoryValues = TextDataSetImpl.create( new String[]{				"New York", "Boston", "Chicago", "San Francisco", "Dallas"} );//$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$//$NON-NLS-5$		double data[] = {				54.65, 21, 75.95, 91.28, 37.43		};		double value = 0;		for ( int i = 0; i < data.length; i++ )		{			value += data[i];		}		double values[] = new double[data.length];		for ( int i = 0; i < data.length; i++ )		{			values[i] += ( data[i] / value ) * 100;		}		NumberDataSet seriesValues = NumberDataSetImpl.create( values );		// Base Series		Series seCategory = (Series) SeriesImpl.create( );		seCategory.setDataSet( categoryValues );		SeriesDefinition sd = SeriesDefinitionImpl.create( );		cwoaPie.getSeriesDefinitions( ).add( sd );		sd.getSeriesPalette( ).update( 0 );		sd.getSeries( ).add( seCategory );		// Orthogonal Series		PieSeries sePie = (PieSeries) PieSeriesImpl.create( );		sePie.setDataSet( seriesValues );		sePie.setSeriesIdentifier( "Cities" );//$NON-NLS-1$			SeriesDefinition sdCity = SeriesDefinitionImpl.create( );		sdCity.getQuery( ).setDefinition( "Census.City" );//$NON-NLS-1$		sd.getSeriesDefinitions( ).add( sdCity );		sdCity.getSeries( ).add( sePie );		DataPointComponent dpc = DataPointComponentImpl.create( DataPointComponentType.ORTHOGONAL_VALUE_LITERAL,				JavaNumberFormatSpecifierImpl.create( "0'%'" ) );//$NON-NLS-1$		sePie.getDataPoint( ).getComponents( ).clear( );		sePie.getDataPoint( ).getComponents( ).add( dpc );		return cwoaPie;	}