how to export google charts in pdf file in asp.net c#

1,141 views
Skip to first unread message

Ashish Sojitra

unread,
Oct 25, 2013, 12:24:25 AM10/25/13
to google-visua...@googlegroups.com
Hi team,
  
     I want to export this charts (https://developers.google.com/chart/interactive/docs/gallery) in PDF file in asp.net C#.  I have tried to export but I'm not able to export this charts in pdf.
Please send me if u have any Ideas, suggestions or feedback.

asgallant

unread,
Oct 25, 2013, 9:46:08 AM10/25/13
to google-visua...@googlegroups.com
Your best bet is to convert the chart to a .png image and import the image file into PDF.  There is a code example here that shows one way to convert a chart to an image.  It only works reliably in Chrome, so I would not suggest using it on a production website, but it should suffice for converting your charts to image files for personal use.

Alternatively, you could wait for image conversion to be added to the API.  The developer team has hinted that it is coming soon.
Reply all
Reply to author
Forward
0 new messages