constructor: function(kwArgs, chart){ 
constructor: function(chart, kwArgs){ 
(function(){	var df = dojox.lang.functional, du = dojox.lang.utils,		dc = dojox.charting.plot2d.common,		purgeGroup = df.lambda("item.purgeGroup()");	dojo.declare("dojox.charting.plot2d.Columns", dojox.charting.plot2d.Base, {		defaultParams: {			hAxis: "x",		// use a horizontal axis named "x"			vAxis: "y",		// use a vertical axis named "y"			gap:	0,		// gap between columns in pixels			shadows: null	// draw shadows		},		optionalParams: {},	// no optional parameters				constructor: function(kwArgs, chart){			this.opt = dojo.clone(this.defaultParams);			du.updateWithObject(this.opt, kwArgs);			this.series = [];			this.hAxis = this.opt.hAxis;			this.vAxis = this.opt.vAxis;		},				calculateAxes: function(dim){			var stats = dc.collectSimpleStats(this.series);			stats.hmin -= 0.5;			stats.hmax += 0.5;			this._calc(dim, stats);			return this;		},		render: function(dim, offsets){			if(this.dirty){				dojo.forEach(this.series, purgeGroup);				this.cleanGroup();				var s = this.group;				df.forEachReversed(this.series, function(item){ item.cleanGroup(s); });			}			var t = this.chart.theme, color, stroke, fill, f,				gap = this.opt.gap < this._hScaler.scale / 3 ? this.opt.gap : 0;			for(var i = this.series.length - 1; i >= 0; --i){				var run = this.series[i];				if(!this.dirty && !run.dirty){ continue; }				run.cleanGroup();				var s = run.group;				if(!run.fill || !run.stroke){					// need autogenerated color					color = new dojo.Color(t.next("color"));				}				stroke = run.stroke ? run.stroke : dc.augmentStroke(t.series.stroke, color);				fill = run.fill ? run.fill : dc.augmentFill(t.series.fill, color);				for(var j = 0; j < run.data.length; ++j){					var v = run.data[j],						width  = this._hScaler.scale - 2 * gap,						height = this._vScaler.scale * (v - this._vScaler.bounds.lower);					if(width >= 1 && height >= 1){						s.createRect({							x: offsets.l + this._hScaler.scale * (j + 0.5 - this._hScaler.bounds.lower) + gap,							y: dim.height - offsets.b - this._vScaler.scale * (v - this._vScaler.bounds.lower),							width: width, height: height						}).setFill(fill).setStroke(stroke);					}				}				run.dirty = false;			}			this.dirty = false;			return this;		}	});})();
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/df85ae045532157a355d6e810860c518fab58b52/Columns.js/clean/charting/plot2d/Columns.js