I am using webcharts3d to create a gauge graph for my webpage. I want to add an onclick event to the chart- any idea how to do that?
Here is my code:
<cfsavecontent variable="chartStyle">
<!--- xml chart style --->
</cfsavecontent>
<cfsavecontent variable="chartModel"><?xml version="1.0" encoding="UTF-8"?>
<XML type="default">
<COL>2000</COL>
<cfoutput><ROW col0="#url.rating#">Sample 0:</ROW></cfoutput>
</XML></cfsavecontent>
<cfscript>
oMyWebChart = createObject("Java","com.gp.api.jsp.MxServerComponent");
oMyApp = getPageContext().getServletContext();
oSvr = oMyWebChart.getDefaultInstance(oMyApp);
oMyChart2 = oSvr.newImageSpec();
oMyChart2.width = 120;
oMyChart2.height= 120;
oMyChart2.type = "swf";
oMyChart2.style = "#chartStyle#";
oMyChart2.model = "#chartModel#";
</cfscript>
<cfsavecontent variable="chartImgTag">
<cfoutput>#oSvr.getImageTag(oMyChart2,"http://myWebsite.com/CFIDE/GraphData.cfm?graphCache=wc50&graphID=")#</cfoutput>
</cfsavecontent>
<cfoutput>
#chartimgtag#
</cfoutput>