Sign in to follow this  

Exporting Charts As Images/pdf

Recommended Posts

hai i have added exportEnabled='1' exportAtClient='1' exportHandler='fcExporter1' exportFileName='FusionReport attributes to my chart tag then now can see the save as jpeg,png labels .after clicking on that it is showing capturing data after it has to show save button as in examples provided in docs but that save button is not showing to me .have to use any other swf file or where is my mistake

Share this post

Link to post
Share on other sites

Can u provide sample example of saving as image . i am unable to see Export chart little icon too .What still i have to do


String dataXMl= <chart exportEnabled='1' exportAtClient='1' exportHandler='fcExporter1' exportFileName='FusionReport' >.......</chart>





<div id='<%=chartId%>Div' align='center'>Chart</div>

<div id='<%=chartId%>Div1' align='center'></div>

<script type='text/javascript'>

var chart_<%=chartId%> = new FusionCharts("<%=chartSWF%>", "<%=chartId%>","<%=chartWidthStr%>"

,"<%=chartHeightStr%>", "<%=debugModeInt%>", '1');


<%if (strXML.equals("")) {%>

//<!-- Set the dataURL of the chart-->



<%} else {%>

// Provide entire XML data using dataXML method





/* FusionCharts.setCurrentRenderer('javascript'); This line will force fully render chart in javascript mode*/

chart_<%=chartId%>.configure("PBarLoadingText", "Loading Chart. Please Wait.....");

chart_<%=chartId%>.configure("XMLLoadingText" , "Loading Chart. Please Wait.....");

chart_<%=chartId%>.configure("InvalidXMLText", "Invalid Data ");

chart_<%=chartId%>.configure("ChartNoDataText", "No Current Records To Display");

//<!-- Finally, render the chart.-->




var myExportComponent = new FusionChartsExportObject("fcExporter1", "FCExporter.swf");



Edited by OMMPAVAN

Share this post

Link to post
Share on other sites
Guest Bindhu



Can you please let us know if you are trying to run the sample on a local machine?


If yes, then I am afraid, on local files system, Adobe Flash Player blocks Flash to JavaScript communication on local file system for security reasons, which FusionCharts uses for Client-side exporting.


If you need to over-ride that for a specific folder, you will need to visit player/help/settings_manager04.html and then in that interface add the folder containing our examples to the list of allowed folder.


Or try running it from a server.


Also, please make sure you have done the following while exporting a chart:

1. You have defined the correct Client-side Export Handler's ID in the data (XML/JSON) of the chart

2. You have passed the correct Client-side Export Handler's ID while calling the exportChart() function

3. Flash Player 10 or above is installed in the system

4. You have Flash Player Global Security settings configured to run the samples from local file system.


Please note:

During export of the pure JavaScript charts, the chart data is sent to external servers for processing and converting to image.


User must have an active internet connection for this feature to work. In case you want to process the exported data on your own server, you may setup the chart to send the data to your own server.


For more details, please refer to the link below,


Hope this helps!

Edited by Bindhu

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this