Hello everyone !
This morning I was testing TracGViz 1.3.2 (the forthcoming version ;)
and I'm experiencing the following problem. I wrote the following
macro
{{{
[[iGoogleGadget(url=gadget:google:modules:geomap,
_table_query_url=[gviz:google:sheet:pCQbetd-CptHo44c-Bt43eg::A1-B15],
width=640, height=400)]]
}}}
which generates the following HTML inside the page I am editing [1]_ :
{{{
#!html
<script
src="http://gmodules.com/ig/ifr?lang=en_US&title=&url=http%3A%2F%2Fwww.google.com%2Fig%2Fmodules%2Fgeomap.xml&country=ALL&synd=open&up__table_query_url=http%3A%2F%2Fspreadsheets.google.com%2Ftq%3Frange%3DA1%253AB15%26key%3DpCQbetd-CptHo44c-Bt43eg&w=640&h=400&output=js&border=%23ffffff%7C1px%2C1px+solid+black%7C1px%2C1px+solid+black%7C0px%2C1px+black"></script>
}}}
This should display Geomap gadget [2]_ using the first 14 items (15
rows) in the example data source [3]_ but the box around the gadget
displays the following messages instead
{{{
Geocoding...
Could not load region coder.
}}}
OTOH, on accessing the target url [4]_ this is what I get back
{{{
#!json
google.visualization.Query.setResponse({version:'0.6',status:'ok',sig:'1588413608',table:{cols:[{id:'A',label:'Country',type:'string',pattern:''},{id:'B',label:'GDP
Per Capita
(2006)',type:'number',pattern:'#0.###############'}],rows:[{c:[{v:'Afghanistan'},{v:657.632,f:'657.632'}]},{c:[{v:'Albania'},{v:5815.12,f:'5815.12'}]},{c:[{v:'Algeria'},{v:6195.36,f:'6195.36'}]},{c:[{v:'Angola'},{v:4629.83,f:'4629.83'}]},{c:[{v:'Antigua
and
Barbuda'},{v:17027.43,f:'17027.43'}]},{c:[{v:'Argentina'},{v:12053.97,f:'12053.97'}]},{c:[{v:'Armenia'},{v:4328.3,f:'4328.3'}]},{c:[{v:'Australia'},{v:34386.39,f:'34386.39'}]},{c:[{v:'Austria'},{v:36133.35,f:'36133.35'}]},{c:[{v:'Azerbaijan'},{v:6060.62,f:'6060.62'}]},{c:[{v:'Bahamas,
The'},{v:23929.76,f:'23929.76'}]},{c:[{v:'Bahrain'},{v:29891.92,f:'29891.92'}]},{c:[{v:'Bangladesh'},{v:1223.01,f:'1223.01'}]},{c:[{v:'Barbados'},{v:17555.08,f:'17555.08'}]}]}});
}}}
which means that data and URL should be OK (CMIIW)
Could anybody please tell me what's wrong ?
Besides I also have the following macro
{{{
[[iGoogleGadget(url=gadget:google:modules:time-series-line,
_table_query_url=[attachment:wiki:En/Devel/TracGViz/EmbedGVizGadget:timeline.json],
width=640, height=400)]]
}}}
which is expanded to
{{{
#!html
<script
src="http://gmodules.com/ig/ifr?lang=en_US&title=&url=http%3A%2F%2Fwww.google.com%2Fig%2Fmodules%2Ftime-series-line.xml&country=ALL&synd=open&up__table_query_url=https%3A%2F%2Fopensvn.csie.org%2Ftraccgi%2Fswlcu%2Fattachment%2Fwiki%2FEn%2FDevel%2FTracGViz%2FEmbedGVizGadget%2Ftimeline.json&w=640&h=400&output=js&border=%23ffffff%7C1px%2C1px+solid+black%7C1px%2C1px+solid+black%7C0px%2C1px+black"></script>
}}}
This should render Time Line Series gadget using data found inside a
file [6]_. On accessing its URL [6]_ this is what I get
{{{
#!json
google.visualization.Query.setResponse({version:'0.5',reqId:'0',status:'ok',sig:'6700864051796921914',table:{cols:[{id:'A',label:'Release
Date',type:'date',pattern:'M/d/yyyy'},{id:'B',label:'Budget (in
dollars)',type:'number',pattern:'#0.###############'},{id:'C',label:'Gross
revenue (in the
US)',type:'number',pattern:'#0.###############'},{id:'D',label:'Movie
name',type:'string',pattern:''}],rows:[{c:[{v:new
Date(1981,10,6),f:'11/6/1981'},{v:5000000.0,f:'5000000'},{v:4.2365581E7,f:'42365581'},{v:'Time
Bandits'}]},{c:[{v:new
Date(1985,11,18),f:'12/18/1985'},{v:1.5E7,f:'15000000'},{v:9929000.0,f:'9929000'},{v:'Brazil'}]},{c:[{v:new
Date(1989,2,10),f:'3/10/1989'},{v:2.35E7,f:'23500000'},{v:8000000.0,f:'8000000'},{v:'The
Adventures of Baron Munchausen'}]},{c:[{v:new
Date(1991,8,20),f:'9/20/1991'},{v:2.4E7,f:'24000000'},{v:4.2E7,f:'42000000'},{v:'The
Fisher King'}]},{c:[{v:new
Date(1996,2,29),f:'3/29/1996'},{v:2.9E7,f:'29000000'},{v:5.7141459E7,f:'57141459'},{v:'Twelve
Monkeys'}]},{c:[{v:new
Date(1998,4,22),f:'5/22/1998'},{v:1.85E7,f:'18500000'},{v:1.06E7,f:'10600000'},{v:'Fear
and Loathing in Las Vegas'}]},{c:[{v:new
Date(2005,7,26),f:'8/26/2005'},{v:8.0E7,f:'80000000'},{v:3.7899638E7,f:'37899638'},{v:'The
Brothers Grimm'}]}]}});
}}}
In this case I get the following message
{{{
Request timed out
}}}
So, is it a connectivity issue or something I'm doing wrong ? Could
you please try it and provide some feedback (and | or) hints in order
to (fix anything if necessary | know what's happenning ) ?
Thnx in advance !
.. [1] Using TracLinks expressions to embed iGoogle gadgets
(https://opensvn.csie.org/traccgi/swlcu/wiki/En/Devel/TracGViz/TracLinks)
.. [2] Geomap gadget
(http://www.google.com/ig/modules/geomap.xml)
.. [3] Geomap gadget - Example data
(http://spreadsheets.google.com/tq?key=pCQbetd-CptHo44c-Bt43eg)
.. [4] Geomap gadget - Example data - first fourteen items (15 rows)
(http://spreadsheets.google.com/tq?range=A1%3AB15&key=pCQbetd-CptHo44c-Bt43eg)
.. [5] Time Line Series gadget
(http://www.google.com/ig/modules/time-series-line.xml)
.. [6] Time Line Series - Example data attached to wiki page
(https://opensvn.csie.org/traccgi/swlcu/raw-attachment/wiki/En/Devel/TracGViz/EmbedGVizGadget/timeline.json)
--
Regards,
Olemis.
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
PyUMLGraph : Otra manera de contemplar el código -
http://feedproxy.google.com/~r/simelo-es/~3/lLsxDz4Rkgc/pyumlgraph-mirando-al-codigo-de-python.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---