我可以访问一个html文件(本地存储为程序的输出),在生成的页面中,它包含饼图。我希望能够以.png的形式下载这些饼图。LOoking在页面源代码中,我找到了以下内容:
google.visualization.events.addListener(consequences_pie, 'select', function() {
              consequences_table.setSelection(consequences_pie.getSelection());
            });如何刮出我制作的饼图?我知道这可以使用google API构建,但是我无法控制页面的生成。
非常感谢。
发布于 2015-01-17 05:26:17
您可以将图表下载为PNG文件。
请参阅项目:https://gist.github.com/battlehorse/1333906
脚本演示:http://bl.ocks.org/nverba/raw/5411684/
代码需要两个小的更新才能工作:Can Google Visualization: Pie Chart output to a PNG image?
我与“战马”无关,但我玩过谷歌图表,这三个链接对我很有帮助。
https://stackoverflow.com/questions/27583467
复制相似问题