Code :
<!DOCTYPE html>
<html>
<head>
<title>Sample</title>
<!-- default container look and feel -->
<link rel="stylesheet" href="gadgets.css">
<script type="text/javascript" src="/gadgets/js/shindig-
container:pubsub.js?c=1&debug=1"></script>
<script type="text/javascript" src="gadget_pubsubhub.js"></script>
<script type="text/javascript">
var my = {};
my.LayoutManager = function() {
shindig.LayoutManager.call(this);
};
my.LayoutManager.inherits(shindig.LayoutManager);
my.LayoutManager.prototype.getGadgetChrome = function(gadget) {
var chromeId = 'gadget-chrome-' + gadget.id;
return chromeId ? document.getElementById(chromeId) : null;
};
my.renderGadgets = function() {
shindig.container.layoutManager = new my.LayoutManager();
shindig.container.setParentUrl("http://localhost:8080/");
var gadget = shindig.container.createGadget(
{debug:0,specUrl: 'http://www.google.com/ig/modules/pie-
chart.xml', title : 'Pie chart'});
shindig.container.addGadget(gadget);
shindig.container.renderGadget(gadget);
//maximize();
};
function maximize(){
iframe = document.getElementById('remote_iframe_0');
iframe.style.height = "400px";
iframe.style.width = "400px";
}
</script>
</head>
<body onLoad="my.renderGadgets();init();" style="width: 500px; height:
500px; margin-top:10px;" >
<div id="gadget-chrome-0" class="gadgets-gadget-chrome"
style="width: 500px; height: 500px; margin-top:10px;"></div>
<div id = 'output' > </div>
</body>
</html>
Gadget's URL -> "http://www.google.com/ig/modules/pie-chart.xml"
This is simple HTML page hosted on Shindig Server, I added Pie-
Chart.xml 's source, this would render the xml gadget and display it
in iframe. When I am rendering I get this error message stating that
Unsupported feature : [idi]
when i googled this problem, I got this error message saying that idi
is proprietary to google and can be hosted only on google server
(which supports this visualization API) and I cannot directly use it
on my own shindig server.
Now, I wrote my own gadget that could take input from user and display
it in pie-chart using visualization API.
Thanks Roni for spending time on this query.
--
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.