dojox/charting/plot3d/Cylinders.js

  • Provides:

    • dojox.charting.plot3d.Cylinders
  • Requires:

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

    • 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: "shiny", color: "lime"};
         this.outline = null;
         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;
           }
          }
          if("outline" in kwArgs){ this.outline = kwArgs.outline; }
         }
    • summary
  • dojox.charting.plot3d.Cylinders.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.Cylinders.generate

    • type
      Function
    • parameters:
      • chart: (typeof )
      • creator: (typeof )
    • source: [view]
         if(!this.data){ return this; }
         var step = this.width / this.data.length, org = 0,
          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
           .createCylinder({
            center: {x: org + step / 2, y: 0, z: 0},
            radius: step / 2 - this.gap,
            height: this.data[i] * scale
           })
           .setTransform(dojox.gfx3d.matrix.rotateXg(-90))
           .setFill(this.material).setStroke(this.outline);
         }
    • summary
  • dojox.charting.plot3d.Cylinders.depth

    • summary
  • dojox.charting.plot3d.Cylinders.gap

    • summary
  • dojox.charting.plot3d.Cylinders.data

    • summary
  • dojox.charting.plot3d.Cylinders.material

    • summary
  • dojox.charting.plot3d.Cylinders.outline

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

    • summary
  • dojox.charting.plot3d

    • type
      Object
    • summary
  • dojox.charting

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary