Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for PNG url? #100

Open
Deekor opened this issue Nov 19, 2015 · 4 comments
Open

Support for PNG url? #100

Deekor opened this issue Nov 19, 2015 · 4 comments

Comments

@Deekor
Copy link

Deekor commented Nov 19, 2015

Does this gem support the png printing functionality?
https://developers.google.com/chart/interactive/docs/printing

I would like to just get the URL of a chart to stick into an email.

@winston
Copy link
Owner

winston commented Nov 20, 2015

The gem supports adding listeners now, see:

So it could be possible to have the PNG functionality. A convenience helper method can be added to the gem to make that easier too.

However you won't be able to directly use it in your email because most (all?) email clients will not allow JavaScript to run, and hence it's not possible to just use the chart functionality directly in emails.

It will be a two step process where you need to get the URLs manually before putting them in emails.

Hope this answers?

@francesco-loreti
Copy link

any news? if you could directly turn the chart in PNG, I could add the image to a pdf file ( with Prawn ) or other type of file that does not support javascript

@Deekor
Copy link
Author

Deekor commented Jun 28, 2016

I ended up using Google's deprecated image charts: https://developers.google.com/chart/image/

@francesco-loreti
Copy link

Ok but if I want convert the Gantt chart or Timeline chart into png?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants