Thank you kind sir! I salute you and shall toast you with my finest wine!

On Monday, June 22, 2015 at 3:31:24 PM UTC+2, Daniel Buttery wrote:
>
> 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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to