I would like to patch or replace chart.draw() so that it returns a 
"<svg>... </svg>" string to STDOUT instead of finding and updating a DOM 
element.

This will let me generate the SVG on the server side. This is necessary 
because I'm sending my HTML document to a PDF generator, not a standard web 
browser, and the PDF generator can't cope with the number of 
JavaScript-generated charts that are in my document.

(I've tried embedding a DOM in my server-side JavaScript interpreter using 
JSDOM but so far it's not working.)

Any guidance on how to go about this?

I'm struggling because I can't see the source code for chart.draw() as it's 
currently defined.

(Also I usually work in Ruby, bringing JavaScript into the mix only when 
required.)

Thanks in advance,

Steven.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-chart-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to