src/org/tiefaces/components/websheet/chart/ChartHelper.java
private void setupPieStyle(final JFreeChart chart,
			final ChartData chartData) {
		PiePlot plot = (PiePlot) chart.getPlot();
		List<ChartSeries> seriesList = chartData.getSeriesList();
		List<ParsedCell> categoryList = chartData.getCategoryList();
		BasicStroke bLine = new BasicStroke(2.0f);
		for (int i = 0; i < seriesList.size(); i++) {
			ChartSeries chartSeries = seriesList.get(i);
			List<XColor> valueColorList = chartSeries.getValueColorList();
			for (int index = 0; index < categoryList.size(); index++) {
				try {
					String sCategory = getParsedCellValue(
							categoryList.get(index));
					Color cColor = ColorUtility.xssfClrToClr(
							valueColorList.get(index).getXssfColor());
					plot.setSectionPaint(sCategory, cColor);
					plot.setSectionOutlineStroke(sCategory, bLine);
				} catch (Exception ex) {
					LOG.log(Level.FINE, "SetupPieStyle error = "
							+ ex.getLocalizedMessage(), ex);
				}
			}

		}
		plot.setBackgroundPaint(ColorUtility
				.xssfClrToClr(chartData.getBgColor().getXssfColor()));

		// below are modifications for default setting in excel chart
		// to-do: need read setting from xml in future

		plot.setOutlineVisible(false);
		plot.setLegendItemShape(
				new Rectangle(TieConstants.DEFAULT_LEGENT_ITEM_SHAPE_WIDTH,
						TieConstants.DEFAULT_LEGENT_ITEM_SHAPE_HEIGHT));
		chart.setBackgroundPaint(Color.WHITE);
		LegendTitle legend = chart.getLegend();
		legend.setPosition(RectangleEdge.RIGHT);
		legend.setFrame(BlockBorder.NONE);

	}
private void setupPieStyle(final JFreeChart chart,
			final ChartData chartData) {
		PiePlot plot = (PiePlot) chart.getPlot();
		List<ChartSeries> seriesList = chartData.getSeriesList();
		List<ParsedCell> categoryList = chartData.getCategoryList();
		BasicStroke bLine = new BasicStroke(2.0f);
		for (int i = 0; i < seriesList.size(); i++) {
			ChartSeries chartSeries = seriesList.get(i);
			List<XColor> valueColorList = chartSeries.getValueColorList();
			for (int index = 0; index < categoryList.size(); index++) {
				try {
					String sCategory = getParsedCellValue(
							categoryList.get(index));
					Color cColor = ColorUtility.xssfClrToClr(
							valueColorList.get(index).getXssfColor());
					plot.setSectionPaint(sCategory, cColor);
					plot.setSectionOutlineStroke(sCategory, bLine);
				} catch (Exception ex) {
					LOG.log(Level.FINE, "SetupPieStyle error = "
							+ ex.getLocalizedMessage(), ex);
				}
			}

		}
		plot.setBackgroundPaint(ColorUtility
				.xssfClrToClr(chartData.getBgColor().getXssfColor()));

		// below are modifications for default setting in excel chart
		// to-do: need read setting from xml in future

		plot.setOutlineVisible(false);
		plot.setLegendItemShape(
				new Rectangle(TieConstants.DEFAULT_LEGENT_ITEM_SHAPE_WIDTH,
						TieConstants.DEFAULT_LEGENT_ITEM_SHAPE_HEIGHT));
		chart.setBackgroundPaint(Color.WHITE);
		LegendTitle legend = chart.getLegend();
		legend.setPosition(RectangleEdge.RIGHT);
		legend.setFrame(BlockBorder.NONE);

	}
finalize the style for jfreechart. The default setting is different from
jfreechart and Excel. We try to minimize the difference.

@param chart
jfreechart.
@param chartData
contain information gathered from excel chart object.