Bug 168839 Chart Legend Toggle Visibility does not work correctly for Pie chart in SVG[0001]
Description: Chart Legend Toggle Visibility does not work correctly . Build number: 2.1.2.v20061221-0710 Steps to reproduce: 1. Preview the attached design file. 2. Click the legend. Expected result: Toggle Visibility works correctly. Actual result: Pie slice of different color disappears when being click. Error log: N/A
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java
rre.setOutline( lia );
		rre.setBackground( ca.getBackground( ) );
		ipr.fillRectangle( rre );
		ipr.drawRectangle( rre );
		lia = LineAttributesImpl.copyInstance( lia );
		lia.setVisible( true ); 
		LineAttributes liSep = lg.getSeparator( ) == null ? lia
				: lg.getSeparator( );
		final SeriesDefinition[] seda = cm.getSeriesForLegend( );
		
		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 );
		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 );