The correct answer is D. all of the mentioned.
The following are the methods that can be used to create a Google Gadget based on a Google Visualization Object:
createGadget()
: This method creates a new Google Gadget based on a Google Visualization Object. The gadget is created in the current window.createGoogleGadget()
: This method creates a new Google Gadget based on a Google Visualization Object. The gadget is created in a new window.newGoogleGadget()
: This method creates a new Google Gadget based on a Google Visualization Object. The gadget is created in a new window and is displayed in full screen mode.
The following is an example of how to create a Google Gadget based on a Google Visualization Object using the createGadget()
method:
var gadget = new google.visualization.Query("http://www.google.com/chart?cht=tx&chs=600x400&chd=t:1,2,3,4,5,6,7,8,9,10");
var gadgetDiv = document.getElementById("gadgetDiv");
gadgetDiv.innerHTML = gadget.getContent();
The following is an example of how to create a Google Gadget based on a Google Visualization Object using the createGoogleGadget()
method:
var gadget = new google.visualization.Query("http://www.google.com/chart?cht=tx&chs=600x400&chd=t:1,2,3,4,5,6,7,8,9,10");
var gadgetWindow = window.open("", "gadgetWindow", "width=600,height=400");
gadgetWindow.document.write(gadget.getContent());
The following is an example of how to create a Google Gadget based on a Google Visualization Object using the newGoogleGadget()
method:
var gadget = new google.visualization.Query("http://www.google.com/chart?cht=tx&chs=600x400&chd=t:1,2,3,4,5,6,7,8,9,10");
var gadgetWindow = window.open("", "gadgetWindow", "width=600,height=400,fullscreen=yes");
gadgetWindow.document.write(gadget.getContent());