(function($) {
	var def = {  
		chart: "pie3d", // BARV, BARH, LINE, PIE, PIE3D, GOM  
		size: "500x100",
		values: "50, 50",
		axis: "x,y,r,t",
		axisval: "",
		labels: "Hello|World",
		space: "a"
	};  
	var charttype;
	var option = jQuery.extend(def, option);
	jQuery.fn.gchart = function(option) {
		jQuery(this).each(function() {
			// BAR TYPE 
			switch(option.chart) {
				case "line" : var charttype = "lc";
				break;
				case "barh" : var charttype = "bhs";
				break;
				case "barv" : var charttype = "bvs";
				break;
				case "pie" : var charttype = "p";
				break;
				case "pie3d" : var charttype = "p3";
				break;
				case "gom" : var charttype = "gom";
			}
			jQuery(this).html("<img src='http://chart.apis.google.com/chart?cht="+charttype+"&chd=t:"+option.values+"&chs="+option.size+"&chl="+option.labels+"&chxt="+option.axis+"&chxr="+option.axisval+"&chbh="+option.space+"' alt='Loading chart ...'>");
		});
    }
})(jQuery);