-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I want to know that how to use Fusion Charts in ZK ( *.zul file).
Found a solution
<zscript><![CDATA[
JSONdata = FusionChartDataEngine.getMultiColumn3DLineChartJSON(arg.get("paramData"));
]]></zscript>
-------------------------------------------------------
<h:div id="chartdiv" height="500px">
<attribute w:name="onBind"><![CDATA[
var chart = new FusionCharts("charts/Column3D.swf", "ChartId", "${width}", "${height}", "0", "1");
chart.setJSONData($JSONdata);
chart.render("chartdiv");
]]></attribute>
</h:div>
mr samchuang...
i need your help..
could you give me the example create a fusion chart without using xml..?? actually i want to take the value from my own model/entitiy that generated by hibernate. Please give me your advice.
Many thanks.
Galau
I have a problem when i want export my chart. The problem only appears in IE. The problem is not displayed on the button 'Save' and always 'Waiting'.
.zul code:
<?script charset="UTF-8" src="./js/FusionCharts.js"?> <?script charset="UTF-8" src="./js/FusionChartsExportComponent.js"?> . . . <include src="/botonExportacion.jsp"/> <include src="/fusionChart.jsp"/>
botonExportacion.jsp
<div id="fcexpDiv" align="center" width="300px">FusionCharts Export Handler Component</div> <script type="text/javascript"> //Render the export component in this //Note: fcExporter1 is the DOM ID of the DIV and should be specified as value of exportHandler //attribute of chart XML. var myExportComponent = new FusionChartsExportObject("fcExporter1", "./js/FCExporter.swf"); myExportComponent.componentAttributes.btnsavetitle = 'Save'; myExportComponent.componentAttributes.btndisabledtitle = 'Waiting...'; //Render the exporter SWF in our DIV fcexpDiv myExportComponent.Render("fcexpDiv"); </script>
fucionChart.jsp
<div id="chartdiv" align="center" style="z-index:0"></div> <script type="text/javascript"> var myChart = new FusionCharts("./js/MSColumn3D.swf", "myChartId", "<%=width%>", "<%=height%>", "0", "1"); myChart.setDataXML("<%=XML%>"); myChart.render("chartdiv"); </script>
I am very worried, because everything works fine in FF, Chrome, etc ... but when run in IE does not work.
Can anyone help me?
I need to click on a chart, and then pop up a window.The first time in this window to be a file download operation is possible, when the second click the chart on the error, and who has not encountered this situation, to help me under, thank you.
Asked: 2010-08-17 15:05:44 +0800
Seen: 8,414 times
Last updated: Sep 05 '12