*Update:*
I resolved this by just having this line after the data is loaded
* $("#loading").hide();*
Not sure whether it is the right way but this hides the spinner.
Unfortunately, I am trying to show the google treemap for the "top xx
number" of values. Which means that when I select the number, I would like
that the treemap is drawn for that number of values and when it loads the
data, it should again show a spinner. How can I achieve the same? Any
suggestions?
Thanks
Sachin
On Thursday, December 22, 2016 at 4:47:25 PM UTC+5:30, Sachin Bal wrote:
>
> 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
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization 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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/2e12b953-2430-4a6a-b019-365fea98c9f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.