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/composites/TriggerDataComposite.java
private transient Composite cmpDPVisibility = null;
	
	private transient StackLayout slValues = null;
	private transient CTextCombo cmbTriggerType = null;
	private transient Combo cmbActionType = null;
	private transient ChartWizardContext wizardContext;
	private transient Button btnBaseURL;
	private transient Button btnAdvanced;
	private transient String sBaseURL = ""; 
	private transient boolean bEnableURLParameters;
	private transient boolean bEnableShowTooltipValue;
	private transient boolean bAdvanced = false;
	private EList triggersList;
	private Map triggersMap;
	private String lastTriggerType;
	
	private boolean needSaveWhenDisposing = false;
	private final static int INDEX_1_URL_REDIRECT = 1;
	private final static int INDEX_2_TOOLTIP = 2;
	private final static int INDEX_3_TOOGLE_VISABILITY = 3;
	private final static int INDEX_4_SCRIPT = 4;
	private final static int INDEX_5_HIGHLIGHT = 5;
	private final static int INDEX_6_CALLBACK = 6;
	private final static int INDEX_7_TOOGLE_DATAPOINT = 7;
	
	private TriggerSupportMatrix triggerMatrix;
	public TriggerDataComposite( Composite parent, int style, EList triggers,
			ChartWizardContext wizardContext,
			int iInteractivityType, boolean bEnableURLParameters,
			boolean bEnableShowTooltipValue )