Re: Print Google Charts

3,124 views
Skip to first unread message

elton santos

unread,
Jul 11, 2012, 9:35:42 PM7/11/12
to google-visua...@googlegroups.com
someone??? Please!

Em quarta-feira, 11 de julho de 2012 16h13min53s UTC-3, elton santos escreveu:
Hi, i use Google Charts, but i have a question. How make for print the charts using, for example, jquery?

I create a button that onclick execute a function and get by id where is the charts. So, i can print the google  tables, the iframe and div, but dont print the charts =/
Why? From what i learned, its because SVG files. Please, what i make? I need print the charts. Thanks!

Jinji

unread,
Jul 12, 2012, 9:20:25 AM7/12/12
to google-visua...@googlegroups.com
If converting the chart to an image is what you're looking for, then I'm sorry, it's not supported. You can search the archives of this group to find some hacks regarding it, but they're all hacks.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/Z84yHqLp3mQJ.

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

elton santos

unread,
Jul 12, 2012, 9:29:26 AM7/12/12
to google-visua...@googlegroups.com
I dont wanna convert a chart in image, but just print what is show in the chart. For example, i have a chart pie, i wanna print it, just. I've seen a website that make this, but i dont remember what was =/

2012/7/12 Jinji <ji...@google.com>

Jinji

unread,
Jul 15, 2012, 8:46:53 AM7/15/12
to google-visua...@googlegroups.com
I don't understand. If you have a working page with a chart, hitting Print on the browser should just work, isn't it?

elton santos

unread,
Jul 16, 2012, 1:57:53 PM7/16/12
to google-visua...@googlegroups.com
Look. Take it image how example. I wanna that onclick in button "Janela de Impressão", open something for can print, a popup, just. The problem is, when i generate a print, all is show less the chart =/
The tables too is shown. Help me please =/ 

2012/7/15 Jinji <ji...@google.com>
print-it.png

Ariel Baez

unread,
Jul 16, 2012, 3:20:20 PM7/16/12
to google-visua...@googlegroups.com
If I am understanding correctly, it seems he would like some mechanism to hook the onclick to something like CTRL+P or for that matter to just send the job to the default printer. It is not clear from the thread if he is having issues with the chart printing.

HTH
AB

elton santos

unread,
Jul 16, 2012, 3:40:38 PM7/16/12
to google-visua...@googlegroups.com
Almost it, in CTRL + P, show all page, i wanna that show just the chart, and other, in  CTRL + P show a pagination estrange, take a look in image...
Beyond show something that dont wanna, cut a portion the chart and table =/

2012/7/16 Ariel Baez <ariel...@gmail.com>
If I am understanding correctly, it seems he would like some mechanism to hook the onclick to something like CTRL+P or for that matter to just send the job to the default printer. It is not clear from the thread if he is having issues with the chart printing.

HTH
AB
fs.png

Ariel Baez

unread,
Jul 16, 2012, 4:15:07 PM7/16/12
to google-visua...@googlegroups.com
OK, How about this. When onclick, launch a new page with only the chart, and then proceed with the code that does the printing.

The idea is similar to when you read a news article and select the print view. The document, is usually rendered without all the ad's and is contained in one long page, that has the documents content, which is usually spread over 3-4 pages.

Again, HTH
AB

Pedro Doria Meunier

unread,
Jul 17, 2012, 4:45:28 AM7/17/12
to google-visua...@googlegroups.com
Solved it ;) check this topic: https://groups.google.com/d/topic/google-visualization-api/f-VvfIel1GA/discussion


On Monday, July 16, 2012 6:57:53 PM UTC+1, elton santos wrote:
Look. Take it image how example. I wanna that onclick in button "Janela de Impressão", open something for can print, a popup, just. The problem is, when i generate a print, all is show less the chart =/
The tables too is shown. Help me please =/ 

2012/7/15 Jinji <ji...@google.com>
I don't understand. If you have a working page with a chart, hitting Print on the browser should just work, isn't it?
On Thu, Jul 12, 2012 at 4:29 PM, elton santos <elton.me...@gmail.com> wrote:
I dont wanna convert a chart in image, but just print what is show in the chart. For example, i have a chart pie, i wanna print it, just. I've seen a website that make this, but i dont remember what was =/

2012/7/12 Jinji <ji...@google.com>
If converting the chart to an image is what you're looking for, then I'm sorry, it's not supported. You can search the archives of this group to find some hacks regarding it, but they're all hacks.
On Thu, Jul 12, 2012 at 4:35 AM, elton santos <elton.me...@gmail.com> wrote:
someone??? Please!

Em quarta-feira, 11 de julho de 2012 16h13min53s UTC-3, elton santos escreveu:
Hi, i use Google Charts, but i have a question. How make for print the charts using, for example, jquery?

I create a button that onclick execute a function and get by id where is the charts. So, i can print the google  tables, the iframe and div, but dont print the charts =/
Why? From what i learned, its because SVG files. Please, what i make? I need print the charts. Thanks!

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/Z84yHqLp3mQJ.

To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to google-visualization-api+unsub...@googlegroups.com.

elton santos

unread,
Jul 17, 2012, 9:47:02 AM7/17/12
to google-visua...@googlegroups.com
So, i just make the download this code and dont work... i need a button that print a chart how svg, its almost what is in the code, but still dont is what wanna =/

Please, have patience, i really need this =/

Thanks very much!

2012/7/17 Pedro Doria Meunier <pdo...@gmail.com>
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/BQSsNWaLTh0J.

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
index.html
Reply all
Reply to author
Forward
0 new messages