[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/yuilib/3.17.2/series-combospline-stacked/ -> series-combospline-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-combospline-stacked', function (Y, NAME) {
   9  
  10  /**
  11   * Provides functionality for creating a stacked combospline series.
  12   *
  13   * @module charts
  14   * @submodule series-combospline-stacked
  15   */
  16  /**
  17   * The StackedComboSplineSeries class renders a combination of splines, plots and areaspline fills in a single series. Series
  18   * are stacked along the value axis to indicate each series contribution to a cumulative total. Each
  19   * series type has a corresponding boolean attribute indicating if it is rendered. By default, all three types are
  20   * rendered.
  21   *
  22   * @class StackedComboSplineSeries
  23   * @extends StackedComboSeries
  24   * @uses CurveUtil
  25   * @constructor
  26   * @param {Object} config (optional) Configuration parameters.
  27   * @submodule series-combospline-stacked
  28   */
  29  Y.StackedComboSplineSeries = Y.Base.create("stackedComboSplineSeries", Y.StackedComboSeries, [Y.CurveUtil], {
  30      /**
  31       * @protected
  32       *
  33       * Draws the series.
  34       *
  35       * @method drawSeries
  36       */
  37      drawSeries: function()
  38      {
  39          if(this.get("showAreaFill"))
  40          {
  41              this.drawStackedAreaSpline();
  42          }
  43          if(this.get("showLines"))
  44          {
  45              this.drawSpline();
  46          }
  47          if(this.get("showMarkers"))
  48          {
  49              this.drawPlots();
  50          }
  51      }
  52  }, {
  53      ATTRS: {
  54          /**
  55           * Read-only attribute indicating the type of series.
  56           *
  57           * @attribute type
  58           * @type String
  59           * @default stackedComboSpline
  60           */
  61          type : {
  62              value : "stackedComboSpline"
  63          },
  64  
  65          /**
  66           * Indicates whether a fill is displayed.
  67           *
  68           * @attribute showAreaFill
  69           * @type Boolean
  70           * @default true
  71           */
  72          showAreaFill: {
  73              value: true
  74          }
  75      }
  76  });
  77  
  78  
  79  }, '3.17.2', {"requires": ["series-combo-stacked", "series-curve-util"]});


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