rem: for(var i=0; i<data.length; i++){ var x = Math.round(plot.axisX.getCoord(data[i].x, plotarea, plot)); var y = Math.round(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: for(var i=0; i<data.length; i++){ var x = Math.round(plot.axisX.getCoord(data[i].x, plotarea, plot)); var y = Math.round(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 r = (data[i].size/2)*sizeFactor;  var point = document.createElement("v:oval"); point.setAttribute("strokecolor", data[i].series.color); point.setAttribute("fillcolor", data[i].series.color); var fill=document.createElement("v:fill"); fill.setAttribute("opacity","0.6"); point.appendChild(fill);  var s=point.style; s.position="absolute"; s.rotation="45"; s.top=(y-r)+"px"; s.left=(x-r)+"px"; s.width=(r*2)+"px"; s.height=(r*2)+"px"; group.appendChild(point); if(applyTo){ applyTo(point, data[i].src); } 
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 sizeFactor=1;		var area = plotarea.getArea();		var group=document.createElement("div");		group.style.position="absolute";		group.style.top="0px";		group.style.left="0px";		group.style.width=plotarea.size.width+"px";		group.style.height=plotarea.size.height+"px";		for(var i=0; i<data.length; i++){			var x = Math.round(plot.axisX.getCoord(data[i].x, plotarea, plot));			var y = Math.round(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 r = (data[i].size/2)*sizeFactor;			var point = document.createElement("v:oval");			point.setAttribute("strokecolor", data[i].series.color);			point.setAttribute("fillcolor", data[i].series.color);			var fill=document.createElement("v:fill");			fill.setAttribute("opacity","0.6");			point.appendChild(fill);			var s=point.style;			s.position="absolute";			s.rotation="45";			s.top=(y-r)+"px";			s.left=(x-r)+"px";			s.width=(r*2)+"px";			s.height=(r*2)+"px";			group.appendChild(point);			if(applyTo){ applyTo(point, data[i].src); }		}		return group;	//	HTMLDivElement	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/Plotters.js/buggy/www/resources/dojo-ajax/src/charting/vml/Plotters.js