I think this would be fairly easy with the Visualization API but I
must have the ability to export the visualization somehow preferably
in SVG but would be okay with any other format since the idea is to
generate a graph, export it as an image or pdf and then use it in a
lab report.
I know that not all visualizations are rendered in vector based
graphics but I am somewhat guessing that the backend of the
visualization uses something like the Google Closure API in that it
chooses the correct display format (VML, SVG, or Canvas) based on the
browser but the underlying representation does not change so it seems
that there should be a way to access the underlying representation and
output it as SVG. This function is done with the Google Closure API
in the project "Closure Draw" <http://code.google.com/p/closure-draw/
>.
If I could get the SVG form of the visualization, I could use
ImageMagick with PHP to convert it to any image format or size that I
want since I must have an export function.
If there is no way to do this, I could probably just use the Closure
API to create my own simple graphing functionality but it would be
significantly more difficult and more crude I would think.
Any help would be much appreciated.