开发者

Is there any way to export a Google Visualization org chart as an image?

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


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜