Bug 211773 Legend entries overlap
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/LegendBuilder.java
private boolean isValidValue( Object obj )
	{
		if ( obj == null )
		{
			return false;
		}
		if ( obj instanceof Double )
		{
			return !( (Double) obj ).isNaN( ) && !( (Double) obj ).isInfinite( );
		}
		if ( obj instanceof String )
		{
			return ( (String) obj ).length( ) != 0;
		}
		return true;
	}
	/**
	 * Revert the legend items
	 */
	private LegendItemHints[] invertLegendItems( LegendItemHints[] liha )
	{
		List legendItem = new ArrayList( liha.length );
		for ( int i = liha.length - 1; i >= 0; i-- )
		{
			LegendItemHints legendItem1 = liha[i];
			LegendItemHints legendItem2 = liha[liha.length - i - 1];
			legendItem.add( new LegendItemHints( legendItem2.getType( ),
					legendItem1.getLocation( ),
					legendItem2.getWidth( ),
					legendItem2.getHeight( ),