eza Report post Posted May 15, 2014 hi.. can u help me.. (pure javascript) how can i create a server like "http://export.highcharts.com/" or "export.api3.fusioncharts.com" for exporting data. with pure javascript.. i have tried each step "http://docs.fusioncharts.com/charts/contents/?exporting-image/server-side/ECServerSave.html" still dont get it.. but svn file export sucessfully to temp folder in my server Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted May 15, 2014 Hi, If you are looking for setting up your own server in PHP for exporting pure JavaScript charts and saving into your server directory, you would need to install Batik library into your server with PHP export handler provided by FusionCharts. So, please follow the steps mentioned in the "Exporting Pure JavaScript Charts > Setup your own server to process and export JavaScript charts" section of the documentation link: http://docs.fusioncharts.com/charts/contents/?exporting-image/ECPureJS.html After setting all the steps mentioned, please ensure that the "temp" folder has proper write permission. Now good to go for exporting the charts into your server. Hope this helps! Share this post Link to post Share on other sites
eza Report post Posted May 15, 2014 On 5/15/2014 at 6:27 AM, Sashibhusan said: Hi, If you are looking for setting up your own server in PHP for exporting pure JavaScript charts and saving into your server directory, you would need to install Batik library into your server with PHP export handler provided by FusionCharts. So, please follow the steps mentioned in the "Exporting Pure JavaScript Charts > Setup your own server to process and export JavaScript charts" section of the documentation link: http://docs.fusioncharts.com/charts/contents/?exporting-image/ECPureJS.html After setting all the steps mentioned, please ensure that the "temp" folder has proper write permission. Now good to go for exporting the charts into your server. Hope this helps! i have tried all step , but correct me : 1. i put batik folder (which is contain batik-rasterizer.jar, and etc) 2. edit "FCExporter_SVG2ALL.php" define ('TEMP_PATH', 'temp/'); define ('BATIK_PATH', 'batik/batik-rasterizer.jar'); and when i click download icon (at top right corner) to pdf/image theres nothing happend but a svn file, appear at temp folder. here my file's server : http://www.sendspace.com/file/p1qckr hope u can help me Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted May 16, 2014 Hi, It seems you have not set the path to the "FCExporter_SVG2ALL.php" and "index.php" file properly. Please download the working sample, modify as per your server settings and test. Download link: https://www.dropbox.com/s/atcjnc0zdkhm80s/15886.zip Hope this helps! Share this post Link to post Share on other sites
eza Report post Posted May 16, 2014 (edited) On 5/16/2014 at 6:42 AM, Sashibhusan said: Hi, It seems you have not set the path to the "FCExporter_SVG2ALL.php" and "index.php" file properly. Please download the working sample, modify as per your server settings and test. Download link: https://www.dropbox.com/s/atcjnc0zdkhm80s/15886.zip Hope this helps! thx, but still not working. i dunno.. is it my server, or fusionchart server. im using XAMPP this is what i change based file's that u gave to me. FCExporter_SVG2ALL.php define ('TEMP_PATH', 'temp/'); //i put this code, and it works save as a svn file to temp folder define ('BATIK_PATH', 'batik/batik-rasterizer.jar'); //this too index.php define("SAVE_PATH", "./ExportedImages/"); define("HTTP_URI", "http://localhost/MyFirstChart1/MyFirstChart/ExportedImages/"); data.xml exportEnabled='1' exportHandler='http://localhost/MyFirstChart1/MyFirstChart/index.php' exportAtClient='0' exportAction='save'> still cannot download pdf, jpeg, and png file. here my server http://www.sendspace.com/file/ikqizi Edited May 16, 2014 by eza Share this post Link to post Share on other sites
Sanjukta Report post Posted May 17, 2014 On 5/16/2014 at 10:08 AM, eza said: thx, but still not working. i dunno.. is it my server, or fusionchart server. im using XAMPP this is what i change based file's that u gave to me. FCExporter_SVG2ALL.php define ('TEMP_PATH', 'temp/'); //i put this code, and it works save as a svn file to temp folder define ('BATIK_PATH', 'batik/batik-rasterizer.jar'); //this too index.php define("SAVE_PATH", "./ExportedImages/"); define("HTTP_URI", "http://localhost/MyFirstChart1/MyFirstChart/ExportedImages/"); data.xml exportEnabled='1' exportHandler='http://localhost/MyFirstChart1/MyFirstChart/index.php' exportAtClient='0' exportAction='save'> still cannot download pdf, jpeg, and png file. here my server http://www.sendspace.com/file/ikqizi Hi, Could you please send us the screenshot of the error you are facing? Awaiting your response. Share this post Link to post Share on other sites
eza Report post Posted May 17, 2014 On 5/17/2014 at 6:12 AM, Sanjukta said: Hi, Could you please send us the screenshot of the error you are facing? Awaiting your response. sure.. the problem is, i cannot get "pdf, png or jpeg file" as a download file. here the screenshoot at that picture, as we can see.. im able to download a SVN file when i click "download as svg vector". but when i choose "download as pdf" or "download as png or image" there's no file that i get. why it happend? need help. thx hope u can help me. Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted May 19, 2014 Hi, Could you please try once by setting the local file system path (complete) for "temp" folder and batik JAR file , as shown below, in "FCExporter_SVG2ALL.php" file? FCExporter_SVG2ALL.php define ('TEMP_PATH', 'G:/xampp/htdocs/15886/MyFirstChart1/MyFirstChart/temp/'); define ('BATIK_PATH', 'G:/xampp/htdocs/15886/MyFirstChart1/MyFirstChart/batik/batik-rasterizer.jar'); In case if this is what is not working, please check the response from "index.php" file, from browser > Developer Tool > Network Tab, after exporting the chart and provide a screen shot of it, for more clarity on the issue. Awaiting your valuable response. Share this post Link to post Share on other sites
eza Report post Posted May 21, 2014 On 5/19/2014 at 4:54 AM, Sashibhusan said: Hi, Could you please try once by setting the local file system path (complete) for "temp" folder and batik JAR file , as shown below, in "FCExporter_SVG2ALL.php" file? FCExporter_SVG2ALL.php define ('TEMP_PATH', 'G:/xampp/htdocs/15886/MyFirstChart1/MyFirstChart/temp/'); define ('BATIK_PATH', 'G:/xampp/htdocs/15886/MyFirstChart1/MyFirstChart/batik/batik-rasterizer.jar'); In case if this is what is not working, please check the response from "index.php" file, from browser > Developer Tool > Network Tab, after exporting the chart and provide a screen shot of it, for more clarity on the issue. Awaiting your valuable response. i did, and its not working when i choose "download as a pdf document". here the screen shoot : Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted May 30, 2014 Could you please show the response of "index.php" so that I can guess what error is in PHP Batik export handler? Also, please find the working sample of Batik, for the Dropbox link: https://www.dropbox.com/s/188n32qiennfd0r/BatikSAMPLE_v3.3.1sr3_Eval.zip Hope this helps! Share this post Link to post Share on other sites
eza Report post Posted June 12, 2014 On 5/30/2014 at 8:19 AM, Sashibhusan said: Could you please show the response of "index.php" so that I can guess what error is in PHP Batik export handler? Also, please find the working sample of Batik, for the Dropbox link: https://www.dropbox.com/s/188n32qiennfd0r/BatikSAMPLE_v3.3.1sr3_Eval.zip Hope this helps! i tried ur files.. i got error when i click "download as pdf, jpeg and png" There was an error saving the chart. Error message undefined. Its DOM Id is undefined. can you tell me how solve this. screenshoot Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted June 13, 2014 Hi, Did you tried our sample, by changing the required URLs? If yes, please provide a screen shot of the response of "index.php" file, from browser developer tool > Net tab. (please refer the screen shot for the same.) Awaiting your valuable response. Share this post Link to post Share on other sites
eza Report post Posted June 15, 2014 On 6/13/2014 at 6:01 AM, Sashibhusan said: Hi, Did you tried our sample, by changing the required URLs? If yes, please provide a screen shot of the response of "index.php" file, from browser developer tool > Net tab. (please refer the screen shot for the same.) Awaiting your valuable response. hi.. yes i did. here my ScreenShoot need ur best help.. thx Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted June 16, 2014 Hi, Could you please put the below line of PHP code inside the "raise_error()" method in your "index.php" file, as per the screen shot, so that we can identify the exact error cause the issue? Ref. Code Snippet: echo $code; Also, if feasible you can share a live URL of your implementation, so that we can test the issue from our end. You can share the URL through <support@fusioncharts.com> Awaiting your valuable response. Share this post Link to post Share on other sites