Bug 132031 access to chart scripting methods and related documentation
It's very strange that access to chart scipting methods available only from script tab related to whole chart item. This approach is not consistent comparing to how script defined for such report items as table or dataset. That why inside of chart's script tab we see comment out bunch of chart scripting methods. I suggest that every component on chart item that have corresponding scripting methods must have separate script tab with set predefined methods. Beside that it would be nice to have at least some documentation and axamples on this topic.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/datafeed/GroupingLookupHelper.java
import org.eclipse.birt.chart.log.Logger;
import org.eclipse.birt.chart.model.Chart;
import org.eclipse.birt.chart.model.ChartWithAxes;
import org.eclipse.birt.chart.model.ChartWithoutAxes;
import org.eclipse.birt.chart.model.component.Axis;
import org.eclipse.birt.chart.model.component.Series;
import org.eclipse.birt.chart.model.data.Query;
import org.eclipse.birt.chart.model.data.SeriesDefinition;
import org.eclipse.birt.chart.model.data.SeriesGrouping;
import org.eclipse.birt.chart.plugin.ChartEnginePlugin;
import org.eclipse.emf.common.util.EList;
import com.ibm.icu.util.ULocale;
/**
 * Helper to lookup the index of each data definition in the evaluator data.
 */
public class GroupingLookupHelper
{
	private static ILogger logger = Logger.getLogger( "org.eclipse.birt.chart.engine/trace" ); 
	private LinkedHashMap lhmAggExp = new LinkedHashMap( 8 );
	private List lstAll = new ArrayList( 8 );
	private String strBaseAggExp = null;
	private int iLookup = 0;
	/**
	 * Constructor. Finds all data expressions and aggregation expressions in
	 * the chart model in the order and restore them in the lookup list
	 * 
	 * @param cm
	 *            chart model
	 * @param iae
	 *            IActionEvaluator to get the expressions in triggers