In the function for the creation of a google chart in javascript I have the variable of a div on which I draw the graphic.
The variable in question is containerDiv, which is a string with the id of the div.
I would need, instead of drawing the graph itself, to draw a jpg of it.
google.visualization.events.addListener(drawChart, "ready", function () {
containerDiv.innerHTML = \'<img src="\' + chart.getImageURI() + \'">\';
});
This code I found on the web, but I'm not sure that it's being used properly.
How do I make containerDiv.innerHTML reference the object contained within the containerDiv string?