Bug 193465 Series color is incorrect in cone chart [0001]
Description: Series color is incorrect in cone chart. Build version:2.2.0v20070620-0630 Steps to reproduce: 1. Get the attached report design file, preview in layout. Expected result: The series is grouped by city, but the displayed plot color is inconsistent with legend color.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/util/FillUtil.java
newColor.setRed( getNewColor( lumDiff, newColor.getRed( ), 0.3 ) );
			newColor.setGreen( getNewColor( lumDiff, newColor.getGreen( ), 0.59 ) );
			newColor.setBlue( getNewColor( lumDiff, newColor.getBlue( ), 0.11 ) );
			gradient.setEndColor( newColor );
		}
		else
		{
			gradient.setEndColor( color );
			ColorDefinition newColor = (ColorDefinition) EcoreUtil.copy( color );
			newColor.eAdapters( ).addAll( color.eAdapters( ) );
			int lumDiff = -100;
			newColor.setRed( getNewColor( lumDiff, newColor.getRed( ), 0.3 ) );
			newColor.setGreen( getNewColor( lumDiff, newColor.getGreen( ), 0.59 ) );
			newColor.setBlue( getNewColor( lumDiff, newColor.getBlue( ), 0.11 ) );
			gradient.setStartColor( newColor );
		}
		return gradient;
	}
	private static int convertRGBToLuminance( int red, int green, int blue )
	{
		return (int) ( 0.3 * red + 0.59 * green + 0.11 * blue );
	}
	private static int getNewColor( int lumDiff, int oldColor,
			double coefficient )
	{
		int newColor = (int) ( lumDiff * coefficient ) + oldColor;
		return newColor < 255 ? newColor : 255;
	}
}