[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/yuilib/3.17.2/series-area-stacked/ -> series-area-stacked-debug.js (source)

   1  /*
   2  YUI 3.17.2 (build 9c3c78e)
   3  Copyright 2014 Yahoo! Inc. All rights reserved.
   4  Licensed under the BSD License.
   5  http://yuilibrary.com/license/
   6  */
   7  
   8  YUI.add('series-area-stacked', function (Y, NAME) {
   9  
  10  /**
  11   * Provides functionality for creating a stacked area series.
  12   *
  13   * @module charts
  14   * @submodule series-area-stacked
  15   */
  16  /**
  17   * StackedAreaSeries area fills to display data showing its contribution to a whole.
  18   *
  19   * @class StackedAreaSeries
  20   * @extends AreaSeries
  21   * @uses StackingUtil
  22   * @constructor
  23   * @param {Object} config (optional) Configuration parameters.
  24   * @submodule series-area-stacked
  25   */
  26  Y.StackedAreaSeries = Y.Base.create("stackedAreaSeries", Y.AreaSeries, [Y.StackingUtil], {
  27      /**
  28       * @protected
  29       *
  30       * Calculates the coordinates for the series. Overrides base implementation.
  31       *
  32       * @method setAreaData
  33       */
  34      setAreaData: function()
  35      {
  36          Y.StackedAreaSeries.superclass.setAreaData.apply(this);
  37          this._stackCoordinates.apply(this);
  38      },
  39  
  40      /**
  41       * @protected
  42       *
  43       * Draws the series
  44       *
  45       * @method drawSeries
  46       */
  47      drawSeries: function()
  48      {
  49          this.drawFill.apply(this, this._getStackedClosingPoints());
  50      }
  51  }, {
  52      ATTRS: {
  53          /**
  54           * Read-only attribute indicating the type of series.
  55           *
  56           * @attribute type
  57           * @type String
  58           * @default stackedArea
  59           */
  60          type: {
  61              value:"stackedArea"
  62          }
  63      }
  64  });
  65  
  66  
  67  }, '3.17.2', {"requires": ["series-stacked", "series-area"]});


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1