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
{
	private static final long serialVersionUID = 1L;
	private static final Map JAVA_FUNTION_MAP = new HashMap( );
	static
	{
		
		Method[] ms = IChartEventHandler.class.getMethods( );
		for ( int i = 0; i < ms.length; i++ )
		{
			JAVA_FUNTION_MAP.put( ms[i].getName( ), ms[i] );
		}
	}
	/**
	 * The default JavaScript content. Provided for user convenience and quick
	 * reference.
	 */
	public static final String DEFAULT_JAVASCRIPT = "/**\n" 
			+ " * The chart script methods provide control on the chart databinding, generation and rendering.\n" 
			+ " *\n" 
			+ " * The methods have been commented in the following code, please uncomment and implement the\n" 
			+ " * ones you need. Note that for simplicity the \"after\" methods have not be included here.\n" 
			+ " *\n" 
			+ " * This script syntax follows JavaScript specifications, the Java classes that are referred to\n" 
			+ " * in the comments can be accessed as JavaScript classes. \n" 
			+ " *\n" 
			+ " * Script examples are available in the org.eclipse.birt.chart.examples plugin\n" 
			+ " */\n\n\n"