Question

Is there anyway to have an export function to export the Google Visualization organizational chart as an image? I want this as a feature of my website, so people can click a button or a link and have it save as an image or a pdf file

Was it helpful?

Solution

Make a screen-shot of the browser. There are multiples tools out there to do this. We used this: http://code.google.com/p/speak-lib/source/browse/#svn/trunk/WebShot%3Fstate%3Dclosed

It works fine. We generate previews of design changes that way.

OTHER TIPS

Try http://phantomjs.org/ you can write script to cut your web page into PNG images of some fixed size and then assemble them into PDF.

You can export the SVG code and send it to a server to convert it to an image. This is a scalable and easy solution. Answer details here: Convert Google Geochart to image (JPEG, PNG, etc.) or PDF in the browser

Use chart.getImageURI() it gives the image location

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top