javascript - Saving a Google Chart Wrapper to image -


how can save chart wrapper image (png, jpg, bmp ... don't care) @ click of button.

a normal google chart not problem, need right click on , save image.

but how save image of chart in google chart wrapper???

i think relevant documentation you're looking on charts api website. method display chart png formatted image instead of svg. lose interactive features tooltips , selections.

if still want features write link pops static chart image new window saved.

since you're using chartwrapper need use like:

var imageuri = chartwrapper.getchart().getimageuri(); 

the uri returns base64-encoded png image, modern browsers render image if used src attribute img tag, or entered directly address bar.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -