API Docs for: 3.8.0
Show:

File: charts/js/DiamondGroup.js

  1. /**
  2.  * Abstract class for creating groups of diamonds with the same styles and dimensions.
  3.  *
  4.  * @module charts
  5.  * @submodule charts-base
  6.  * @class GroupDiamond
  7.  * @constructor
  8.  */
  9.  DiamondGroup = function(cfg)
  10.  {
  11.     DiamondGroup.superclass.constructor.apply(this, arguments);
  12.  };

  13.  DiamondGroup.NAME = "diamondGroup";

  14.  Y.extend(DiamondGroup, Y.ShapeGroup, {
  15.     /**
  16.      * Updates the diamond.
  17.      *
  18.      * @method _draw
  19.      * @private
  20.      */
  21.     drawShape: function(cfg)
  22.     {
  23.         this.drawDiamond(cfg.x, cfg.y, cfg.width, cfg.height);
  24.     }
  25.  });

  26. DiamondGroup.ATTRS = Y.ShapeGroup.ATTRS;
  27. Y.DiamondGroup = DiamondGroup;

  28.