webcharts3d를 사용하여 웹 페이지의 게이지 그래프를 만듭니다. 차트에 onclick 이벤트를 추가하고 싶습니다. 어떻게 할 것인가?webcharts3d 차트에 onclick 이벤트 추가 하시겠습니까?
<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>
하이퍼 링크를 좋아하세요? 일부 차트 모델에는 게이지 차트가 표시되지 않지만 "액션"특성이 있습니다. 그렇지 않다면 앵커 태그에 차트를 래핑하는 것은 어떻습니까? – Leigh