dojox/charting/plot3d/Bars.js

  • Provides:

    • dojox.charting.plot3d.Bars
  • Requires:

    • dojox.charting.plot3d.Base in common
  • dojox.charting.plot3d.Bars

    • type
      Function
    • chains:
      • dojox.charting.plot3d.Base: (prototype)
      • dojox.charting.plot3d.Base: (call)
    • parameters:
      • width: (typeof )
      • height: (typeof )
      • kwArgs: (typeof )
    • source: [view]
         this.depth = "auto";
         this.gap = 0;
         this.data = [];
         this.material = {type: "plastic", finish: "dull", color: "lime"};
         if(kwArgs){
          if("depth" in kwArgs){ this.depth = kwArgs.depth; }
          if("gap" in kwArgs){ this.gap = kwArgs.gap; }
          if("material" in kwArgs){
           var m = kwArgs.material;
           if(typeof m == "string" || m instanceof dojo.Color){
            this.material.color = m;
           }else{
            this.material = m;
           }
          }
         }
    • summary
  • dojox.charting.plot3d.Bars.getDepth

    • type
      Function
    • source: [view]
         if(this.depth == "auto"){
          var w = this.width;
          if(this.data && this.data.length){
           w = w / this.data.length;
          }
          return w - 2 * this.gap;
         }
         return this.depth;
    • summary
  • dojox.charting.plot3d.Bars.generate

    • type
      Function
    • parameters:
      • chart: (typeof )
      • creator: (typeof )
    • source: [view]
         if(!this.data){ return this; }
         var step = this.width / this.data.length, org = 0,
          depth = this.depth == "auto" ? step - 2 * this.gap : this.depth,
          scale = this.height / reduce(this.data, Math.max);
         if(!creator){ creator = chart.view; }
         for(var i = 0; i < this.data.length; ++i, org += step){
          creator
           .createCube({
            bottom: {x: org + this.gap, y: 0, z: 0},
            top: {x: org + step - this.gap, y: this.data[i] * scale, z: depth}
           })
           .setFill(this.material);
         }
    • summary
  • dojox.charting.plot3d.Bars.depth

    • summary
  • dojox.charting.plot3d.Bars.gap

    • summary
  • dojox.charting.plot3d.Bars.data

    • summary
  • dojox.charting.plot3d.Bars.material

    • summary
  • dojox.charting.plot3d.Bars.material.color

    • summary
  • dojox.charting.plot3d

    • type
      Object
    • summary
  • dojox.charting

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary