I'm currently converting my google column chart into a png, and then getting the url using chart_div.innerHTML
, paste it into browser (Firefox).
My error is : 413. That’s an error. Your client issued a request that was too large
Is there any way to reduce the size of the url ? or any possible solution around it ? my goal is to be able to convert all of my 4 charts to pngs and print each, or at least 1.
send the image to a new window,
this will allow you to right click and save as, print, etc...
the above creates a "pop-up" and may be blocked,
you can also change the location of the current page...
see following fiddle for an example...
https://jsfiddle.net/7qtuhwaw/
EDIT
an option for chrome is to create a download link,
see following working snippet...
Example solution from google developpers as seen on the issues page of google charts.
Links:
Tutorial : https://developers.google.com/chart/interactive/docs/printing
Unless you have access to Google Servers, you will need to grab the charts in chunks. HTTP 413 means that the server declined your request, because it's just too big. Try splitting your chart into multiple charts and then either put it back together locally or just display the chunks.