Vijaya_FC

Export Chart At Client Side

Recommended Posts

Hi,

 

 

I am working on exporting charts on client side using FusionChartsExportComponent. Below code works fine.

 

But the requirement is

There should be three buttons/menu with export formats like (PDF,JPEG..) on clicking that it should export, and should show the window to choose the destination.

 

In the demo,

http://www.fusioncharts.com/demos/ExportChart/Contents/client_export.html , we need to select the format and then click on save it shows the window to specify the path.

 

Literally it should work as,

http://www.fusioncharts.com/demos/ExportChart/Contents/server_export.html

 

 

 

Code: (Client side export)

<%= javascript_include_tag 'FusionCharts'%>

<%= javascript_include_tag 'FusionChartsExportComponent'%>

 

<div id="report_help">

 

 

<div id="div_ChartId" align="center" style="z-index:0;" ></div>

<script type="text/javascript">

var myChart = new FusionCharts( "/FusionCharts/Column2D.swf", "ChartId", "800", "400", "0", "1" );

var xml_str = "<chart yAxisName='Sales Figure' caption='Top 5 Sales Person' numberPrefix='$' useRoundEdges='1' bgColor='FFFFFF,FFFFFF' showBorder='0' exportEnabled='1' exportAtClient='1' exportHandler='fcExporter1'>"

+"<set label='Alex' value='25000' />"

+ "<set label='Mark' value='35000' />"

+" <set label='David' value='42300' />"

+" <set label='Graham' value='35300' />"

+" <set label='John' value='31300' />"

+"</chart>"

myChart.setXMLData(xml_str);

FusionCharts("ChartId").render("div_ChartId");

</script>

<div id="fcexpDiv" align="center">FusionCharts Export Handler Component</div>

<script type="text/javascript">

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

myExportComponent.Render("fcexpDiv");

</script>

<input type="button" value="Export My Chart" onclick="ExportMyChart()" />

 

</div>

 

 

Thanks,

Vijaya

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thank you very much for your valuable feedback.

 

Please don't hesitate to contact us in case you have any further queries.

 

Happy FusionCharting!smile.gif

Share this post


Link to post
Share on other sites

Hi Angshu,

 

Please help me in resolving the issue.

 

Is it possible to skip the click on "save " (to hide both waiting and saving) step on client side Exporting.

 

 

 

Awaiting for your valuable reply

 

Thanks,

Vijaya

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

I am afraid, FusionCharts does not support the feature you are looking for, at this time.sad.gif

 

We have taken a note of your request here and added the same in our wishlist.

 

Hope you have a great day!

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for your response.

 

If the current version does not support this feature can you please help me how can i resolve this issue.

 

Is it possible to change the Fusion charts export js or the swf file(FCExporter.swf)

As I am new to swf file- is it possible to edit the swf file and change accordingly.

(As in editing the action script)

 

 

 

Thanks,

Vijaya

Share this post


Link to post
Share on other sites

Im trying to export my Gantt chart as Full HTML report, but the grouped elements are collapsed. I cant seem to find the setting to export the gantt chart as fully expanded what am I missing?

Share this post


Link to post
Share on other sites

Hi Erick,

The Gantt chart in FusionCharts does not support any expand/ collapse feature. Please refer to this fiddle for the implementation: http://jsfiddle.net/aeq7o629/

Also share your dataSource where you are facing the issue in FusionCharts Gantt chart.

Gantt chart documentation link: https://www.fusioncharts.com/dev/chart-guide/standard-charts/gantt-chart

Hope this will help.

Thanks,
Srishti

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