Is there any way to save chart after editing by ChartEditor?

28 views
Skip to first unread message

hiddenstones

unread,
Dec 19, 2011, 12:55:46 PM12/19/11
to Google Visualization API
Is there any way to save chart, which I think is the iframe, after
editing by ChartEditor (change chart type, legend, title, etc)?

asgallant

unread,
Dec 19, 2011, 1:07:27 PM12/19/11
to google-visua...@googlegroups.com
In what sense do you mean "saving" the chart?  You could call the getChartWrapper() method, serialize it to a JSON string, and then save it in a session variable or cookie.  You can't save the chart as an image or anything like that, though.

You could also, conceivably, save the contents of the iframe, though I believe you would lose the interactive features of the chart in doing so.  jQuery can get the contents of the iframe using something like this: $('#my_chart_div').find('iframe').contents();
Reply all
Reply to author
Forward
0 new messages