Bug 214577 Support cube filter in chart
For chart consuming cube, need to support filtering on categories or series, possibly on values if time allows. The UI is similar to the filter dialog for cross tab, but there should be no measure or dimension concepts in chart's dialog.
chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartCubeQueryHelper.java
/**
	 * Adds measure or row/column edge according to query expression. Besides,
	 * generates column bindings, replace them in chart queries and add them in
	 * query definition.
	 */
	private void bindSeriesQuery( SeriesDefinition sd, Query query,
			ICubeQueryDefinition cubeQuery ) throws BirtException
	{
		String expr = query.getDefinition( );
		if ( expr != null && expr.length( ) > 0 )
		{
			boolean bBindingExp = isBinding( expr );
			Binding colBinding = (Binding) registeredBindings.get( expr );
			if ( bBindingExp || colBinding == null )
			{
				String bindingName = null;
				if ( colBinding == null )
				{
					
					bindingName = StructureFactory.newComputedColumn( handle,
							expr.replaceAll( "\"", "" ) ) 
							.getName( );
					colBinding = new Binding( bindingName );
					colBinding.setDataType( org.eclipse.birt.core.data.DataType.ANY_TYPE );
					colBinding.setExpression( new ScriptExpression( expr ) );
					registeredBindings.put( expr, colBinding );
					registeredQueries.put( bindingName, expr );
				}
				else
				{