static void test() throws ChartDataException, PropertyException
{
PieChart2D pieChart2D;
PieChartDataSet pieChartDataSet;
LegendProperties legendProperties;
ChartProperties chartProperties;
int dataSize;
int width;
int height;
int numTestsToRun = 15;
String fileName;
HTMLGenerator htmlGenerator = new HTMLGenerator( ChartTestDriver.OUTPUT_PATH + "pieChart2dTest.html" );
for( int i = 0; i < numTestsToRun; i++ )
{
boolean createImageMap = true; //( TestDataGenerator.getRandomNumber( 1 ) > 0.5d );
dataSize = (int) TestDataGenerator.getRandomNumber( 1, 10 );
pieChartDataSet = Pie3DTestDriver.getPieChartDataSet( dataSize, 1, 7 );
width = (int) TestDataGenerator.getRandomNumber( 100, 600 );
height = (int) TestDataGenerator.getRandomNumber( 100, 600 );
legendProperties = new LegendProperties();
TestDataGenerator.randomizeLegend( legendProperties );
//legendProperties.setBorderStroke( new BasicStroke( 2.0f ) );
chartProperties = new ChartProperties();
//areaProperties.setEdgePadding( (int) TestDataGenerator.getRandomNumber( 0, 50 ) );
chartProperties.setBackgroundPaint( TestDataGenerator.getRandomPaint() );
//chartProperties.setBorderStroke( new BasicStroke( 1f ) );
pieChart2D = new PieChart2D( pieChartDataSet, legendProperties, chartProperties, width, height );
fileName = ChartTestDriver.OUTPUT_PATH + "pieChart2d" + i + ChartTestDriver.EXTENSION;