In the JSP page to save the Fusioncharts graphics report as a picture or PDF, you need the following steps:
1, the introduction of the Fusioncharts provided fusionchartsexportcomponent.js.
2, in the report displayed under the div add: <script type= "Text/javascript" >
<!--
var myexportcomponent = new Fusionchartsexportobject ("FcExporter1", "<%=basepath%>page/em/charts/fcexporter.swf");
Myexportcomponent.render ("Fcexpdiv");
-->
</script>
Note The SWF used in the Fcexporter.swf,fusioncharts export that is introduced above, where FcExporter1 is the value of chart attribute "Exporthandler" in Fusioncharts loaded XML, that is < Chart ... exporthandler= ' FcExporter1 ' ....
3. Add the following attributes to the XML chart tag:
exportenabled= ' 1 ' exportatclient= ' 1 ' exporthandler= ' fcExporter1 ' exportformats= ' pdf= Export to Pdf| png= export to PNG pictures | jpg= export jpg image ' exportdialogmessage= ' Loading data: '
exportenabled for 1 logo to open the export function, Exporthandler is 2nd of the required fcExporter1, Exportformats and Exportdialogmessage are the right buttons to modify the display on the SWF.
complete the steps above to resolve the fusioncharts export function.