Skip to content

Commit 9fa7c82

Browse files
store the png images in a global array
1 parent 33d200a commit 9fa7c82

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/render.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/* global google */
22
/* global visualizer */
33
/* global console */
4+
5+
// this will store the images for each chart rendered.
6+
var __visualizer_chart_images = [];
7+
48
(function(v, g) {
59
var gv;
610

@@ -203,7 +207,7 @@
203207

204208
g.visualization.events.addListener(render, 'ready', function () {
205209
var arr = id.split('-');
206-
console.log(arr[0] + '-' + arr[1] + ', ' + settings.title + ' (' + chart.type + ') = ' + render.getImageURI());
210+
__visualizer_chart_images[ arr[0] + '-' + arr[1] ] = render.getImageURI();
207211
});
208212

209213
render.draw(table, settings);

0 commit comments

Comments
 (0)