Sign in to follow this  
vgunse

Export To Image

Recommended Posts

Hi

 

I am new to fusion. i worked with " FusionChartsFree".

 

Later came to know export is supported by only FusionChartV3

 

i tried export by using the following xml & html code. Chart shown fine. i selected "Save as JPEG image" in context menu by right click.

After scan process completed there is no call made to exportHandler mentioned in xml file.

Is export possible in Evalution version?. any code i need to add to trigger the exportHandler.

 

please give some idea . thanks

 

test.xml

<chart caption='Sales By Product' subcaption='For the year 2006' xAxisName='Product' yAxisName='Sales' numberPrefix='$' showValues='1' connectorDashed='1' exportEnabled='1' exportAtClient='0' exportAction='save' exportHandler='http://192.168.0.95:8001/Test/FCExporter.jsp'>

<set label='Fusion Charts' value='910000' />

<set label='IS v2' value='720000' />

<set label='PS v3' value='550000' />

<set label='Web Division Sales' isSum='1' cumulative='0'/>

</chart>

 

 

Sample.html

<script language="JavaScript" src="../JSClass/FusionCharts.js"></script>

<script type="text/javascript">

var chart = new FusionCharts("../Charts/Waterfall2D.swf", "ChartId", "600", "350", "0", "0");

chart.setDataURL("Data/test.xml");

chart.render("chartdiv");

</script>

Share this post


Link to post
Share on other sites

Thanks for your help.

 

i have done the same as doc but

 

After scan process completed there is no call made to exportHandler mentioned in xml file.

Any other thing i need to do?

 

Thank you,

 

 

 

 

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

For more details, please refer to the link below:

 

http://www.fusioncha...erDownload.html

http://www.fusioncha...CServerSave.html

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Please go through the steps below:

 

1. Please make sure that FusionCharts.js, swf file and export handler file are in the same domain of the server.

 

2. Please verify the path of the export handler.

 

If possible, please send us any live link to check the issue from our end.

 

Awaiting for your reply.

Share this post


Link to post
Share on other sites

Hi

 

Thanks for your info. its working fine after i put in same domin of the server.

 

But in my requirment i want set XML url form different domain as follows. but it not working.

 

""setDataURL("'\\192.168.0.95\UploadedFiles\MSBar2D1.xml'")"

 

 

 

 

1. Please make sure that FusionCharts.js, swf file and export handler file are in the same domain of the server.

 

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

Welcome to FusionCharts Forum!smile.gif

 

Since Flash doesn't allow loading of XML documents/data from other domains, it is not directly possible to load data from other domains. However, a proxy page can do the trick.

 

For example, use a proxy page say Relayer.aspx which connects to the remote data, reads its and then locally relays to your chart.

 

Hope this helps.smile.gif

Edited by Angie

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