rem: /* array */data, /* dojo.charting.PlotArea */plotarea, /* dojo.charting.Plot */plot, /* function? */applyTo ){    var group = document.createElementNS(dojo.svg.xmlns.svg, "g"); var sizeFactor=1; for (var i=0; i<data.length; i++){ var x = plot.axisX.getCoord(data[i].x, plotarea, plot); var y = plot.axisY.getCoord(data[i].y, plotarea, plot); if(i==0){  var raw = data[i].size; var dy = plot.axisY.getCoord(data[i].y + raw, plotarea, plot)-y; sizeFactor = dy/raw; 
add: /* array */data, /* dojo.charting.PlotArea */plotarea, /* dojo.charting.Plot */plot, /* function? */applyTo ){    var group = document.createElementNS(dojo.svg.xmlns.svg, "g"); var sizeFactor=1; for (var i=0; i<data.length; i++){ var x = plot.axisX.getCoord(data[i].x, plotarea, plot); var y = plot.axisY.getCoord(data[i].y, plotarea, plot); if(i==0){  var raw = data[i].size; var dy = plot.axisY.getCoord(data[i].y + raw, plotarea, plot)-y; sizeFactor = dy/raw; } if(sizeFactor<1) { sizeFactor = 1; } var point = document.createElementNS(dojo.svg.xmlns.svg, "circle"); point.setAttribute("fill", data[i].series.color); point.setAttribute("fill-opacity", "0.8"); point.setAttribute("stroke", data[i].series.color); point.setAttribute("stroke-width", "1"); point.setAttribute("cx",x); point.setAttribute("cy",y); point.setAttribute("r", (data[i].size/2)*sizeFactor); if(applyTo){ applyTo(point, data[i].src); } group.appendChild(point); 
context: 	Bubble: function(		/* array */data, 		/* dojo.charting.PlotArea */plotarea,		/* dojo.charting.Plot */plot,		/* function? */applyTo	){		//	summary		//	Plots the series as a set of points with a size factor.		//	Bindings: x/y/size		var group = document.createElementNS(dojo.svg.xmlns.svg, "g");		var sizeFactor=1;		for (var i=0; i<data.length; i++){			var x = plot.axisX.getCoord(data[i].x, plotarea, plot);			var y = plot.axisY.getCoord(data[i].y, plotarea, plot);			if(i==0){				//	figure out the size factor, start with the axis with the greater range.				var raw = data[i].size;				var dy = plot.axisY.getCoord(data[i].y + raw, plotarea, plot)-y;				sizeFactor = dy/raw;			}			if(sizeFactor<1) { sizeFactor = 1; }			var point = document.createElementNS(dojo.svg.xmlns.svg, "circle");			point.setAttribute("fill", data[i].series.color);			point.setAttribute("fill-opacity", "0.8");			point.setAttribute("stroke", data[i].series.color);			point.setAttribute("stroke-width", "1");			point.setAttribute("cx",x);			point.setAttribute("cy",y);			point.setAttribute("r", (data[i].size/2)*sizeFactor);			if(applyTo){ applyTo(point, data[i].src); }			group.appendChild(point);		}		return group;	//	SVGGElement	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/Plotters.js/buggy/www/resources/dojo-ajax/src/charting/svg/Plotters.js