Chart refreshInterval

443 views
Skip to first unread message

ksraj

unread,
Mar 12, 2012, 3:25:26 PM3/12/12
to google-visua...@googlegroups.com
Hey Guys,

I currently have this code to draw my chart:
    google.setOnLoadCallback(drawPie);
      
    function drawPie(){
      google.visualization.drawChart({
        chartType : 'PieChart',
        dataSourceUrl: 'http://localhost:8080/pietime/',
        refreshInterval: 5,
        containerId: 'chart_div'
      });
    }

For some reason though, the chart never updates. I set the refreshInterval so I assumed that would work for now?

asgallant

unread,
Mar 19, 2012, 9:12:14 AM3/19/12
to google-visua...@googlegroups.com
Does it draw the first time?  If it does, is your data actually being updated or is it pulling the same data over and over again?

marek rodkiewicz

unread,
Apr 5, 2012, 9:08:56 AM4/5/12
to Google Visualization API
Hi,

I had same problem. Example on google page works
https://developers.google.com/chart/interactive/docs/fusiontables?hl=pl
so why our tries didn't work.

Now i know... For me was global visibility of my data source url.
Don't know why, maybe for google api (sounds dengerous).

Be sure that your url is not local and is visible for the Internet!

good luck and regards

Preetam Patil

unread,
Apr 7, 2012, 1:39:37 AM4/7/12
to google-visua...@googlegroups.com
What I noticed is that chart (I tried only barchart) autorefresh (through refreshinterval setting) works in development mode (through eclipse) but does not work in deployment mode (through GWT copiled project). From the server log, even the queries are not sent to the data source. Am I missing something here?
Any help on this is appreciated.
-preetam


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


Reply all
Reply to author
Forward
0 new messages