//>>built
define("dojox/charting/plot3d/Bars",["dojo/_base/kernel","dojo/_base/declare","dojo/_base/Color","dojo/has","./Base"],function(l,m,n,p,q){return m("dojox.charting.plot3d.Bars",q,{constructor:function(a,d,b){this.depth="auto";this.gap=0;this.data=[];this.material={type:"plastic",finish:"dull",color:"lime"};b&&("depth"in b&&(this.depth=b.depth),"gap"in b&&(this.gap=b.gap),"material"in b&&(a=b.material,"string"==typeof a||a instanceof n?this.material.color=a:this.material=a))},getDepth:function(){if("auto"==
this.depth){var a=this.width;this.data&&this.data.length&&(a/=this.data.length);return a-2*this.gap}return this.depth},generate:function(a,d){if(!this.data)return this;var b=this.width/this.data.length,e=0,r="auto"==this.depth?b-2*this.gap:this.depth,h=this.height,c=this.data,t=Math.max,f=void 0;c="string"==typeof c?c.split(""):c;f=f||l.global;for(var g=c[0],k=1;k<c.length;g=t.call(f,g,c[k++]));h/=g;d||(d=a.view);for(c=0;c<this.data.length;++c,e+=b)d.createCube({bottom:{x:e+this.gap,y:0,z:0},top:{x:e+
b-this.gap,y:this.data[c]*h,z:r}}).setFill(this.material);p("dojo-bidi")&&this._checkOrientation(a)}})});