To get an image version of a chart in a chartwrapper, you need to use
.getChart().getImageURI()
(so in your case wrapper.getChart().getImageURI() ). Heres a fiddle I threw
together for someone previously who had the same question:
https://jsfiddle.net/kujxsn7z/
On Monday, 15 June 2015 19:34:23 UTC+1, Mike Pala wrote:
>
> I have a chart in a google ChartWrapper which is created by the ChartEditor
>
> function loadEditor() {
>
> var data = new google.visualization.DataTable(<?=$jsonTableA01?>)
> wrapper = new google.visualization.ChartWrapper({
>
> dataTable: data,
> left:1,
> options: {
> 'chartArea': {width: '60%', left: 45},
> 'legend' :'none',
>
> 'title':'Number of Newly Opened Roles per <?echo $_SESSION['Display']?>'
> }
>
> });
>
>
> chartEditor = new google.visualization.ChartEditor();
> google.visualization.events.addListener(chartEditor, 'ok', redrawChart);
>
> chartEditor.openDialog(wrapper, {});}
>
> I now need another function linked to a button which will save that chart
> to an image file. Canvas2html does not work. It drops all formatting and
> colors, columns are not visible, and the text (labels, legends, values,
> etc) overlaps and is smooshed together.
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.