At a guess, I suspect it the problems are due to the comment lines in your 
javascript.  When you turned it into a gadget, everything got compacted 
into one line, making most of the code commented out:

<script src="https://www.google.com/jsapi"; type="text/javascript"></script> 
<div id="loading"><img src="http://www.google.com/ig/images/spinner.gif"; 
/></div> <div id="chartdiv" style="overflow: auto;"></div> <script 
type="text/javascript"> var prefs = new _IG_Prefs() var gadgetHelper = 
null; var chart = null; _IG_RegisterOnloadHandler(loadVisualizationAPI); // 
Load the Google Visualization API function loadVisualizationAPI() { 
google.load('visualization', '1', {'packages': ['corechart']}); 
google.setOnLoadCallback(sendQuery); } // Send a data query. function 
sendQuery() { var title = prefs.getString('title'); if (title) { 
_IG_SetTitle(title); } gadgetHelper = new 
google.visualization.GadgetHelper(); var query = 
gadgetHelper.createQueryFromPrefs(prefs); query.send(handleQueryResponse); 
} // Get a query response. function handleQueryResponse(response) { var 
loaddiv= document.getElementById('loading'); if (loaddiv) { 
loaddiv.style.display = 'none'; } if 
(!gadgetHelper.validateResponse(response)) { alert('Boom !'); return; }; // 
Instantiate our Table chart. var theDiv = 
document.getElementById('chartdiv'); theDiv.style.width = 
document.body.clientWidth + 'px'; theDiv.style.height = 
document.body.clientHeight + 'px'; chart = 
google.visualization.BubbleChart(theDiv); var data = 
response.getDataTable(); chart.draw(data, {}); }; </script>

Try removing all comments from the javascript and rebuilding the gadget.

On Friday, September 20, 2013 5:02:54 PM UTC-4, olemis wrote:
>
>
> I am writing the code of a gadget for bubble charts (since I found nothing 
> similar) . Below I provide links to the traceback I got using Dragonfly 
>
> Error details
> -----------------
>
> Gadget XML : http://65.39.226.170/bubble.xml
> Traceback : http://goo.gl/CMlNch
>
> Opera sys info
> ---------------------
> Version : 12.16 
> Build : 1860 
> Platform : Linux 
> System : x86_64, 3.8.0-19-generic
>
> could anybody please take a look into this and suggest what could be 
> causing such failure ?
>
> TIA
>
> PS: if there's usable bubble chart gadget out there please let me know ... 
> :)
>
> -- 
> Regards,
>
> Olemis - @olemislc
>
> Apacheā„¢ Bloodhound contributor
> http://issues.apache.org/bloodhound
> http://blood-hound.net
>
> Blog ES: http://simelo-es.blogspot.com/
> Blog EN: http://simelo-en.blogspot.com/
>
> Featured article:
> Popularidad de Python, septiembre 2013 -
> http://goo.gl/fb/tr0XB
>  

-- 
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to