public void showLegend( boolean bShow, boolean vertical )
	{
		if( bShow && (legend == null) )
		{
			legend = Legend.createDefaultLegend( wb );
			legend.setParentChart( chartobj.getParentChart() );
			for( int j = 0; j < legend.chartArr.size(); j++ )
			{
				((GenericChartObject) legend.chartArr.get( j )).setParentChart( chartobj.getParentChart() );
			}
			legend.setVertical( vertical );
			cf.chartArr.add( legend );
		}
		else if( bShow )
		{
			legend.setVertical( vertical );
		}
		else if( legend != null )
		{
			int i = Chart.findRecPosition( cf.chartArr, Legend.class );
			cf.chartArr.remove( i );
			legend = null;
		}
	}