Bug 137793 Chart parameter and data access needed in scripts
I have a pie chart that displays some data. When I click on a slice, I want to execute a javascript function and pass some of the properties of the report and the slice to the function. For example I would like to pass some of the parameters of this report to this javascript. In addition the data related to the slice clicked on shoule be accessible. The same data and can be used via the drillthrough interactivity action. The way I would envision this working would be: 1) Open the chart properties. 2) Navigate to the Format Chart tab 3) Select the Value Series and click the Interactivity button 4) Associate a Mouse Click action that invokes a script 5) The configuration of the script should allow for parameters (params[]) and data specific to the section of the chart (pie slice, bar...) to be entered. Similar to the values which can be referenced in the drill through functionality.
chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/series/PieSeriesAttributeComposite.java
private transient Group grpLeaderLine = null;
	private transient FillChooserComposite fccSliceOutline = null;
	private transient Combo cmbLeaderLine = null;
	private transient Spinner iscLeaderLength = null;
	private transient LineAttributesComposite liacLeaderLine = null;
	private transient PieSeries series = null;
	private static final int MAX_LEADER_LENGTH = 200;
	private transient ChartWizardContext context;
	private transient TextEditorComposite txtExplode;
	private transient Button btnBuilder;
	private transient Label lblExpSliWhen;
	private transient Label lblExpDistance;
	private transient Label lblRatio;
	private transient Spinner iscExplosion;
	private transient Slider sRatio;
	
	private final static String TOOLTIP_EXPLODE_SLICE_WHEN = Messages.getString( "PieBottomAreaComponent.Label.TheExplosionCondition" ); 
	private final static String TOOLTIP_EXPLOSION_DISTANCE = Messages.getString( "PieBottomAreaComponent.Label.TheAmplitudeOfTheExplosion" ); 
	private final static String TOOLTIP_RATIO = Messages.getString( "PieBottomAreaComponent.Label.TheRatioOfTheChart" ); 
	private static ILogger logger = Logger.getLogger( "org.eclipse.birt.chart.ui.extension/swt.series" ); 
	/**
	 * @param parent
	 * @param style
	 */
	public PieSeriesAttributeComposite( Composite parent, int style,
			Series series, ChartWizardContext context )
	{
		super( parent, style );
		this.context = context;
		if ( !( series instanceof PieSeries ) )