Hi,
I have a google treemap which takes considerable time to load. I would like to show a spinner while the data is loaded. I am trying it this way. I have a div class for loading
<div class="loading">Loading…</div>
and the spinner shows on the screen while the data is loaded. The challenge is that I have written the following in the javascript code
google.visualization.events.addListener(tree, 'ready', onReady);
function onReady(){
$("#loading").hide();
}
}
This does not work. When I do a debug of this code, the onReady() function shows
onReady = onReady()
What am I missing here? Can someone please guide me?
Thanks
Sachin