rem: }   var space = 4; var n = plot.series.length; var h = ((area.bottom-area.top)-(space*(n-1)))/n; var xOrigin = plot.axisX.getCoord(0, plotarea, plot); for(var i=0; i<n; i++){ var series = plot.series[i]; var data = series.data.evaluate(kwArgs); var y = area.top+(h*i)+(space*i); var value = data[data.length-1].y;  var xA = xOrigin; var x = plot.axisX.getCoord(value, plotarea, plot); var w = Math.abs(xA-x); if(value > 0){ xA = x; x = xOrigin; }  } return group; }, 
add: return group; }, 
context: 	HorizontalBar: function(		/* dojo.charting.PlotArea */plotarea,		/* dojo.charting.Plot */plot,		/* object? */kwArgs,		/* function? */applyTo	){		//	summary		//	Plots data in a set of grouped bars horizontally.		//	Bindings: y		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";				//	precompile the data		var n = plot.series.length;	//	how many series		var data = [];		for(var i=0; i<n; i++){			var tmp = plot.series[i].data.evaluate(kwArgs);			data.push(tmp);		}		var space = 6;		var nPoints = data[0].length;		var h = ((area.bottom-area.top)-(space*(nPoints-1)))/nPoints;		var barH = h/n;		var xOrigin = plot.axisX.getCoord(0, plotarea, plot);		for(var i=0; i<nPoints; i++){			//	calculate offset			var yStart = area.top+(h*i)+(space*i);			for(var j=0; j<n; j++){				var value = data[j][i].y;				var y = yStart + (barH*j);				var xA = xOrigin;				var x = plot.axisX.getCoord(value, plotarea, plot);				var w = Math.abs(x-xA);				if(value > 0){					x = xOrigin;				}								var bar=document.createElement("v:rect");				bar.style.position="absolute";				bar.style.top=y+1+"px";				bar.style.left=xA+"px";				bar.style.width=w+"px";				bar.style.height=barH+"px";				bar.setAttribute("fillColor", data[j][i].series.color);				bar.setAttribute("stroked", "false");				bar.style.antialias="false";				var fill=document.createElement("v:fill");				fill.setAttribute("opacity", "0.6");				bar.appendChild(fill);				if(applyTo){ applyTo(bar, data[j][i].src); }				group.appendChild(bar);			}		}		//	calculate the width of each bar.		var space = 4;		var n = plot.series.length;		var h = ((area.bottom-area.top)-(space*(n-1)))/n;		var xOrigin = plot.axisX.getCoord(0, plotarea, plot);		for(var i=0; i<n; i++){			var series = plot.series[i];			var data = series.data.evaluate(kwArgs);			var y = area.top+(h*i)+(space*i);			var value = data[data.length-1].y;			var xA = xOrigin;			var x = plot.axisX.getCoord(value, plotarea, plot);			var w = Math.abs(xA-x);			if(value > 0){				xA = x;				x = xOrigin;			}					}		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