Scott Pon

Autoexport chart to a location

Recommended Posts

I am using Fusion Charts in Filemaker databases, which has been fun.  I used a filemaker fields and scripts to create the javascript code.  Then in filemaker I can see the graphs.  What I need to do is be able to automatically export the graph, in an image format (png preferred) to a specific location on our network.  Is this possible?

Is there a command that automatically export this when the code is generated?  

I'm open to other suggestions too.  Thanks.

Share this post


Link to post
Share on other sites

Hi,

 

Using the export feature of FusionCharts, you can manually select the export format from the export menu(top right) to export chart in the selected format.

Also FusionCharts provides an API method "exportChart()" to export the chart, which you can invoke on the chart instance when the chart has rendered. Please refer to the documentation below to implement accordingly in your FileMaker environment : https://www.fusioncharts.com/dev/api/fusioncharts/fusioncharts-methods#setJSONData#exportChart

Sample : http://jsfiddle.net/fusioncharts/73xgmacm/

To save the export file at specific location, you need to implement private export server. Please refer to the below link to set up private export server :

https://www.fusioncharts.com/dev/exporting-charts/using-fc-export-server/server-side-export/setup-private-export-server/asp-net

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

Akash

I read the export server link you provided.  That sounds like someone still needs to initiate the export. is that correct? 

Thanks.

Share this post


Link to post
Share on other sites

Hi,

 

To export the chart you need to call the exportChart() API method. Now to export the chart automatically when the chart loads, you can invoke the exportChart() method with in the "renderComplete" API event of FusionCharts.

This event is triggered when the chart completes its rendering, hence invoking the exportChart() API method would export the chart automatically when the chart completes rendering.

API event list of FusionCharts : https://www.fusioncharts.com/dev/api/fusioncharts/fusioncharts-events

Sample fiddle : https://jsfiddle.net/oeg1b8ya/2/

 

Thanks,

Akash.

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