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/script/ScriptHandler.java
public static final String AFTER_DRAW_DATA_POINT_LABEL = "afterDrawDataPointLabel"; 
	public static final String BEFORE_DRAW_FITTING_CURVE = "beforeDrawFittingCurve"; 
	public static final String AFTER_DRAW_FITTING_CURVE = "afterDrawFittingCurve"; 
	public static final String BEFORE_DRAW_AXIS_LABEL = "beforeDrawAxisLabel"; 
	public static final String AFTER_DRAW_AXIS_LABEL = "afterDrawAxisLabel"; 
	public static final String BEFORE_DRAW_AXIS_TITLE = "beforeDrawAxisTitle"; 
	public static final String AFTER_DRAW_AXIS_TITLE = "afterDrawAxisTitle"; 
	/**
	 * The pre-defined chart variable name to access base category data.
	 */
	public static final String BASE_VALUE = "categoryData"; 
	/**
	 * The pre-defined chart variable name to access orthogonal value data.
	 */
	public static final String ORTHOGONAL_VALUE = "valueData"; 
	/**
	 * The pre-defined chart variable name to access series value data.
	 */
	public static final String SERIES_VALUE = "valueSeriesName"; 
	
	private final transient Object[] ONE_ELEMENT_ARRAY = new Object[1];
	private final transient Object[] TWO_ELEMENT_ARRAY = new Object[2];
	private final transient Object[] THREE_ELEMENT_ARRAY = new Object[3];
	private transient Scriptable scope = null;
	private transient IChartEventHandler javahandler = null;
	private transient Chart cmDesignTime = null;
	private transient Chart cmRunTime = null;
	private transient GeneratedChartState gcs = null;
	/**
	 * @deprecated locale is stored in IChartScriptContext