rem:  var area = plotArea.getArea(); var stroke = 1; var style = "stroke:#000;stroke-width:"+stroke+"px;"; var textSize=10; var coord = drawAgainst.getCoord(this.origin, plotArea, plot); 
add:  var area = plotArea.getArea(); var stroke = 1; var style = "stroke:#000;stroke-width:"+stroke+"px;"; var textSize=10; var coord = drawAgainst.getCoord(this.origin, plotArea, plot); 
context: 	render: function(		/* dojo.charting.PlotArea */plotArea, 		/* dojo.charting.Plot */plot,		/* dojo.charting.Axis */drawAgainst,		/* string */plane	){		//	summary		//	Renders this axis to the given plot.		//	get the origin plot point.		var area = plotArea.getArea();		var stroke = 1;		var style = "stroke:#000;stroke-width:"+stroke+"px;";		var textSize=10;		var coord = drawAgainst.getCoord(this.origin, plotArea, plot);		//	draw the axis.		var g = this.nodes.main = document.createElement("div");		g.setAttribute("id", this.getId());	//	need a handle if we have to kill parts of the axis def.		var line = this.nodes.axis = document.createElement("v:line");		line.setAttribute("strokecolor", "#000");		line.setAttribute("strokeweight", stroke+"px");		var s=line.style;		s.position="absolute";		s.top="0px";		s.left="0px";		s.antialias="false";		if(plane == "x"){			line.setAttribute("from", area.left+"px,"+coord+"px");			line.setAttribute("to", area.right+"px,"+coord+"px");			//	set up the labels			var y = coord + Math.floor(textSize/2);			if(this.showLines){				g.appendChild(this.renderLines(plotArea, plot, plane, y));			}			if(this.showTicks){				g.appendChild(this.renderTicks(plotArea, plot, plane, coord));			}			if(this.showLabels){				g.appendChild(this.renderLabels(plotArea, plot, plane, y, textSize, "center"));			}			if(this.showLabel && this.label){				var x = plotArea.size.width/2;				var y = coord + Math.round(textSize*1.5); 				var text = document.createElement("div");				var s=text.style;				text.innerHTML=this.label;				s.fontSize=(textSize+2)+"px";				s.fontFamily="sans-serif";				s.fontWeight="bold";				s.position="absolute";				s.top = y+"px";				s.left = x + "px";				s.textAlign="center";				document.body.appendChild(text);				text.style.left = x-(text.offsetWidth/2)+"px";				g.appendChild(text);			}		} else {			line.setAttribute("from", coord+"px,"+area.top+"px");			line.setAttribute("to", coord+"px,"+area.bottom+"px");			//	set up the labels			var isMax = this.origin == drawAgainst.range.upper;			var x = coord+4;			var anchor = "left";			if(!isMax){				x = area.right-coord+textSize+4;				anchor = "right";				if(coord == area.left){ x += (textSize*2)-(textSize/2); }			}			if(this.showLines){				g.appendChild(this.renderLines(plotArea, plot, plane, x));			}			if(this.showTicks){				g.appendChild(this.renderTicks(plotArea, plot, plane, coord));			}			if(this.showLabels){				g.appendChild(this.renderLabels(plotArea, plot, plane, x, textSize, anchor));			}			if(this.showLabel && this.label){				x += (textSize*2)-2;				var y = plotArea.size.height/2;				var text = document.createElement("div");				var s=text.style;				text.innerHTML=this.label;				s.fontSize=(textSize+2)+"px";				s.fontFamily="sans-serif";				s.fontWeight="bold";				s.position="absolute";				s.height = plotArea.size.height+"px";				s.writingMode = "tb-rl";				s.textAlign="center";				s[anchor] = x+"px";				document.body.appendChild(text);				s.top = y-(text.offsetHeight/2)+"px";				g.appendChild(text);			}		}		g.appendChild(line);		return g;	//	HTMLDivElement	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/Axis.js/buggy/www/resources/dojo-ajax/src/charting/vml/Axis.js