Is there a way to export the Google Visualization organization chart as an image?

In any case, is there an export function to export the Google Visualization organization chart as an image? I want this as a function of my website, so people can click a button or link and save it as an image or pdf file.

+4
source share
5 answers

Take a screenshot of the browser. There are multiple tools for this. We used this: http://code.google.com/p/speak-lib/source/browse/#svn/trunk/WebShot%3Fstate%3Dclosed

It works great. Thus, we generate a preview of design changes.

+3
source

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

+1
source

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

0
source

Use chart.getImageURI() to indicate the location of the image.

0
source

Source: https://habr.com/ru/post/1298960/


All Articles