LivingLegend

How to Export chart in PDF

Recommended Posts

Hi,

 

 

 

I have 5 charts in my application. 1 is Bar chart and 4 are pie charts.

 

 

 

I have one button "Export" which when clicked, all the charts should be exported to PDF file.

 

 

 

Actually, I have to create report in which I have to embedded charts in it.

 

 

 

So, is there any functionality or way to achieve this?

 

 

 

Waiting for any reply...

 

 

 

Thanks and Regards

 

Jigar Shah

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please let us know whether you wish to export the image at server-side or client-side?

Awaiting your reply.

Share this post


Link to post
Share on other sites

Hi,

 

 

 

I want to export it at client side.

 

 

 

When user click on Export button, it should ask to download pdf file and that PDF file should contains charts in it.

 

 

 

Means I want to embed charts in PDF files..

Share this post


Link to post
Share on other sites

Hi

If I have understood your requirement correctly, I think this is possible with FusionCharts v3.

Please see http://www.fusioncharts.com/docs/Contents/ECBatchSetup.html

After you set this up, to achieve the whole thing with one click, what you could do is:

Export each chart after it is rendered, using javascript.

Then click on save All button of the export component and save to PDF.

You could also take a look at this: http://www.fusioncharts.com/forum/FindPost24684.aspx

Hope this helps. :)

Srividya

Share this post


Link to post
Share on other sites

Hi,

 

 

 

Thanks a ton for reply.

 

 

 

These links are very useful for me but I have some more requirements.

 

 

 

Actually, I have some other data which I have to include in pdf file.

 

My report will contain some data from database and fusion charts both.

 

 

 

So, when I click on export button, request will be sent to server side, where it will retrieve some data from database,

 

then it should include those data and charts in pdf file, which server send to client (by setting appropriate MIME type in response).

 

 

 

Client should get download popup to download pdf files with above data.

 

 

 

Hope, you clear with my requirements.

 

 

 

Thanks

 

LivingLegends

Share this post


Link to post
Share on other sites

Hello Jigar,

In order to create a pdf with data and charts, on server side, you would have to do some custom coding.

Other users have been able to achieve this by writing their own code for writing pdf.

I can provide you with the general idea.

You would need to export all the charts as a single image and then include it within the pdf that you would generate on server side.

Hope this helps. :)

Srividya

Share this post


Link to post
Share on other sites

Hi,

 

 

 

But I want to achieve this with one interaction.

 

 

 

When I click on export button on site, it should automatically generate one image of all charts

 

and embed it in pdf with my data.

 

 

 

How to achieve this?

Share this post


Link to post
Share on other sites

Hi,

 

I have same requirement need to do. I have a full html page with contents including fusion charts , other images and text contents. Is there any provision in fusion chart to export whole content in pdf format.

 

 

 

Thanks in advance !

 

 

 

with best regards

 

Thaha

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