src/org/tiefaces/components/websheet/chart/ChartHelper.java
private void setupStyle(final JFreeChart chart,
			final ChartData chartData) {
		CategoryPlot plot = (CategoryPlot) chart.getPlot();
		List<ChartSeries> seriesList = chartData.getSeriesList();
		BasicStroke bLine = new BasicStroke(2.0f);
		for (int i = 0; i < seriesList.size(); i++) {
			Color cColor = ColorUtility.xssfClrToClr(
					seriesList.get(i).getSeriesColor().getXssfColor());
			plot.getRenderer().setSeriesPaint(i, cColor);
			plot.getRenderer().setSeriesStroke(i, bLine);
		}
		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.setRangeGridlinesVisible(true);
		plot.setRangeGridlinePaint(Color.BLACK);
		plot.setRangeGridlineStroke(
				new BasicStroke(TieConstants.DEFAULT_BASIC_STROKE));
		plot.setRangeAxisLocation(AxisLocation.BOTTOM_OR_LEFT);
		chart.setBackgroundPaint(Color.WHITE);
		LegendTitle legend = chart.getLegend();
		legend.setPosition(RectangleEdge.RIGHT);
		legend.setFrame(BlockBorder.NONE);

	}
private void setupStyle(final JFreeChart chart,
			final ChartData chartData) {
		CategoryPlot plot = (CategoryPlot) chart.getPlot();
		List<ChartSeries> seriesList = chartData.getSeriesList();
		BasicStroke bLine = new BasicStroke(2.0f);
		for (int i = 0; i < seriesList.size(); i++) {
			Color cColor = ColorUtility.xssfClrToClr(
					seriesList.get(i).getSeriesColor().getXssfColor());
			plot.getRenderer().setSeriesPaint(i, cColor);
			plot.getRenderer().setSeriesStroke(i, bLine);
		}
		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.setRangeGridlinesVisible(true);
		plot.setRangeGridlinePaint(Color.BLACK);
		plot.setRangeGridlineStroke(
				new BasicStroke(TieConstants.DEFAULT_BASIC_STROKE));
		plot.setRangeAxisLocation(AxisLocation.BOTTOM_OR_LEFT);
		chart.setBackgroundPaint(Color.WHITE);
		LegendTitle legend = chart.getLegend();
		legend.setPosition(RectangleEdge.RIGHT);
		legend.setFrame(BlockBorder.NONE);

	}
private void setupStyle ( final JFreeChart chart , final ChartData chartData ) { CategoryPlot plot = ( CategoryPlot ) chart . getPlot ( ) ; List < ChartSeries > seriesList = chartData . getSeriesList ( ) ; BasicStroke bLine = new BasicStroke ( 2.0f ) ; for ( int i = 0 ; i < seriesList . size ( ) ; i ++ ) { Color cColor = ColorUtility . xssfClrToClr ( seriesList . get ( i ) . getSeriesColor ( ) . getXssfColor ( ) ) ; plot . getRenderer ( ) . setSeriesPaint ( i , cColor ) ; plot . getRenderer ( ) . setSeriesStroke ( i , bLine ) ; } 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 . setRangeGridlinesVisible ( true ) ; plot . setRangeGridlinePaint ( Color . BLACK ) ; plot . setRangeGridlineStroke ( new BasicStroke ( TieConstants . DEFAULT_BASIC_STROKE ) ) ; plot . setRangeAxisLocation ( AxisLocation . BOTTOM_OR_LEFT ) ; 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.
finalize the style for jfreechart . The default setting is different from jfreechart and Excel . We try to minimize the difference .