Ajay Singh Meena

Exporting Fusion Chart to Local Machine(Directory)

Recommended Posts

Dear Friends,

I do need your help in creating fusion chart(column3d & pie2d) and storing on local machine using Java Main class. I am able to do it in JSP but for downloading have to click on export button instead of this I want the chart to be stored in my local system directory on execution of my Java class with main() in PDF/Image/xls file. 

In JSP : test.zip

Requirement :  In Java not JSP(Storing as pdf/image/xls in local system).

Sample Database : 

mysql> select * from Country;
+----------+------------------+---------+
| name  | population | code  |
+----------+------------------+---------+
| China  |   20000000 | 1000 |
| India   |   15000000 | 1000 |
| US       |    2800000 | 1000  |
+----------+-----------------+----------+
3 rows in set (0.00 sec)

 

Thanks & Regards,

Ajay Meena

Share this post


Link to post
Share on other sites

Hi,

Please note in order to render FusionCharts it should be rendered either in a browser window or in a web view element, regarding saving your file to a specific folder you could use FusionCharts Java Private export server using which you could achieve the requirement. Please check the link for reference - https://www.fusioncharts.com/dev/exporting-charts/using-fc-export-server/server-side-export/setup-private-export-server-java.html

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