Bug 211773 Legend entries overlap
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java
final Orientation o = lg.getOrientation( );
		final Direction d = lg.getDirection( );
		final Label la = LabelImpl.create( );
		la.setCaption( TextImpl.copyInstance( lg.getText( ) ) );
		la.getCaption( ).setValue( "X" ); 
		final ITextMetrics itm = xs.getTextMetrics( la );
		try
		{
			final double dItemHeight = itm.getFullHeight( );
			final double dHorizontalSpacing = 4;
			Insets insCA = ca.getInsets( ).scaledInstance( dScale );
			Series seBase;
			List al;
			LegendItemRenderingHints lirh;
			Palette pa;
			int iPaletteCount;
			EList elPaletteEntries;
			Fill fPaletteEntry;
			final boolean bPaletteByCategory = ( cm.getLegend( )
					.getItemType( )
					.getValue( ) == LegendItemType.CATEGORIES );
			
			if ( o.getValue( ) == Orientation.VERTICAL )
			{
				if ( bPaletteByCategory )
				{
					SeriesDefinition sdBase = null;
					if ( cm instanceof ChartWithAxes )
					{