ryadaval
Members-
Content count
18 -
Joined
-
Last visited
-
Days Won
1
About ryadaval
-
Rank
Junior Member
-
Any update?
-
Found a way forward, but still a few final links seem to be missing. After specifying the right path for SAVE_PATH and HTTP_URI in FCExporter.php, I am able to export multiple graphs to images, but still get a prompt to download the last image - in firefox. Essentially, the images are stored here for a fraction of a second before they are unlinked in index.php. So I commented out the unlink($outfile); in line 85 of index.php of exporting_server directory. Now I am able to store the images and do what I need with them - although there is still the save/open popup that comes for the last graph/image in firefox. Figured I could get around this somehow, until I started testing in IE. In IE which is where a majority of users will see and export the graphs from, I am able to render all the graphs, but only able to export the first image. After the first image is generated, I get the save/open popup box for the first image. Whether I cancel or Save, the next images are never exported. Can you help me get around this problem? Thanks
-
Spent another 4 hours on this.. but still drawing a blank. Appreciate if you can provide some direction.
-
ryadaval started following Javascript Graphs And Export To Pdf
-
I have also setup the export process to happen on my local server using the instructions in http://www.fusioncharts.com/docs/ECPureJS.html. Still while the export seems to happen, it is only exporting the last graph on the page, and it prompts me to download the image/pdf. I need 1) all images to be saved on server with one click and 2) no prompt on the browser to save/open.
-
Btw, with the above code, I can export all the images if I comment out the line FusionCharts.setCurrentRenderer('javascript'); and render the graphs as flash objects. However, I cannot use flash based graphs and need to use javascript images.
-
Here is my code to export javascript images. While all 3 graphs are displayed on screen, only the last graph gets exported into an image, when I click on "Export My Charts" button. How can I export all the three graphs at once? In addition, at present, I get the download prompt to download the image. I would rather save all the images on the server. If I can save the graphs as images on my server, then there is further processing that I would like to do with them to put them into a pdf. Please help.
-
waiting for your feedback Thanks,
-
waiting for your feedback
-
Thanks for the immediate response. Would you have an example code to export Javascript graphs to pdf that you can share?
-
Yes , I am using latest version of FusionCharts(v 3.2.1) . sorry I have given wrong path now it is working chart rendered but unable export serverside : below is my xml : <chart caption='Weekly Sales Summary' xAxisName='Week' yAxisName='Sales' numberPrefix='$' exportEnabled='1' exportShowMenuItem="0" exportAtClient='0' exportAction='save' exportHandler='http://localhost/test/FusionCharts_User/ExportHandlers/PHP/FCExporter.php' exportFileName='test' exportCallback='myCallBackFunction'> <set label='Week 1' value='14400' /> <set label='Week 2' value='19600' /> <set label='Week 3' value='24000' /> <set label='Week 4' value='15700' /> </chart> but still it is exporting client side only, I have done path changes in FCExporter.php also , I want to save image in specified path. can you please suggest how to save image into specified server path. Thanks, Renuka
-
We have been using fusion charts for sometime now and have an application where in we export multiple graphs at the same time to a pdf file. In some cases where there are many graphs and there is a vertical scroll in the browser, we noticed that they are not exported into pdf. This we found out was a glitch with flash based objects because they do not load unless they are in the viewable area. Asking the user to scroll down so all graphs are rendered on the screen is not an option as it would cause confusion. So we were wondering if we could render the charts in Javascript and then export to pdf. Presumably, javascript graphs would not have the limitation like in flash, where the object has to be in the viewable area. Is this assumption correct? If yes, can you provide me an example of how to export javascript based graph into pdf. Thanks,
-
My code is below : <script type="text/javascript"> function startExport(){ //Get reference to chart. var chart = getChartFromId("myChartId"); //Now, we proceed with exporting only if chart has finished rendering. if (chart.hasRendered()==true){ chart.exportChart({exportFormat:'jpg'}); }else{ alert("Please wait for the chart to finish rendering, before you can invoke exporting"); } } // --> </script> my XML code is : <chart caption='Weekly Sales Summary' xAxisName='Week' yAxisName='Sales' numberPrefix='$' exportEnabled='1' exportShowMenuItem="0" exportAtClient='0' exportAction='save' exportHandler='http://localhost/test/FusionCharts_User/ExportHandlers/PHP/FCExporter.php' exportFileName='test' exportCallback='myCallBackFunction'> <set label='Week 1' value='14400' /> <set label='Week 2' value='19600' /> <set label='Week 3' value='24000' /> <set label='Week 4' value='15700' /> </chart> my Html code : <html> <button onclick="startExport();">Export</button> <head> <title>My First chart using FusionCharts - Using pure JavaScript</title> <script type="text/javascript" src="http://localhost/test/FusionCharts_User/Charts/FusionCharts.js"></script> </head> <body> <div id="chartContainer">FusionCharts will load here!</div> <script type="text/javascript"><!-- FusionCharts.setCurrentRenderer('javascript'); var myChart = new FusionCharts( "http://localhost/test/FusionCharts_User/Charts/Column2D.swf", "myChartId", "400", "300", "0", "1" ); myChart.setXMLUrl("http://localhost/test/FusionCharts_User/Code/ExportChartSamples/PureJavaScript/Data.xml"); myChart.render("chartContainer"); // --> </script> </body> </html> Thanks,
-
Hi, I am using fusionchart v3.2 to generate chart with javascript method, after generating image I would like to export into serverside, for this I also changed related paths in FCExporter.php and given below parameters to <chart> tag : exportEnabled='1' exportAtClient='0' exportAction='save' exportHandler='http://localhost/testinstance/FusionCharts_User/ExportHandlers/PHP/FCExporter.php' exportFileName='MyFileName' it is rendering image in the browser , but if click on export chart button chart suppose to save in specified disk folder, but directly downloading at client place instead of saving to serverside . please give me any suggestion to resolve this issue using javascript method. Thanks,
-
Hi , I have generated chart using fusionchart javascript method, here chart not rendered completely , please go through the attachment , in this after 50% rendered one javascript error is coming like "u.event not a function in highcharts.js file". below is the code which I am using : <script type="text/javascript"><!-- function startExport(){ //Get reference to chart. var chart = getChartFromId("myChartId"); //Now, we proceed with exporting only if chart has finished rendering. if (chart.hasRendered()==true){ chart.exportChart(); }else{ alert("Please wait for the chart to finish rendering, before you can invoke exporting"); } } // --> </script> <html> <head> <title>My First chart using FusionCharts - Using pure JavaScript</title> <script type="text/javascript" src="FusionCharts_User/Code/FusionCharts/FusionCharts.js"></script> </head> <body> <input type="button" onclick="startExport();" value="Begin Chart Export" /> <div id="chartContainer">FusionCharts will load here!</div> <script type="text/javascript"><!-- FusionCharts.setCurrentRenderer('javascript'); var myChart = new FusionCharts( "FusionCharts_User/Charts/Column3D.swf", "myChartId", "400", "300", "0", "1" ); myChart.setDataURL("FusionCharts_User/Gallery/Data/XML/Col3D1.xml"); myChart.render("chartContainer"); // --> </script> </body> </html>
-
We have the same problem. Cannot export all the graphs unless the user scrolls down to display the graphs on the screen. Simulating the scroll is not acceptable to the end users as it causes confusion to the end user. Is there an alternate solution? Would this work if the graphs are rendered in HTML5?