src/cm/media/js/lib/yui/yui3-3.15.0/build/series-combo-stacked/series-combo-stacked-debug.js
changeset 602 e16a97fb364a
equal deleted inserted replaced
601:d334a616c023 602:e16a97fb364a
       
     1 YUI.add('series-combo-stacked', function (Y, NAME) {
       
     2 
       
     3 /**
       
     4  * Provides functionality for creating a stacked combo series.
       
     5  *
       
     6  * @module charts
       
     7  * @submodule series-combo-stacked
       
     8  */
       
     9 /**
       
    10  * The StackedComboSeries class renders a combination of lines, plots and area fills in a single series. Series
       
    11  * are stacked along the value axis to indicate each series contribution to a cumulative total. Each
       
    12  * series type has a corresponding boolean attribute indicating if it is rendered. By default, all three types are
       
    13  * rendered.
       
    14  *
       
    15  * @class StackedComboSeries
       
    16  * @extends ComboSeries
       
    17  * @uses StackingUtil
       
    18  * @constructor
       
    19  * @param {Object} config (optional) Configuration parameters.
       
    20  * @submodule series-combo-stacked
       
    21  */
       
    22 Y.StackedComboSeries = Y.Base.create("stackedComboSeries", Y.ComboSeries, [Y.StackingUtil], {
       
    23     /**
       
    24      * @protected
       
    25      *
       
    26      * Calculates the coordinates for the series. Overrides base implementation.
       
    27      *
       
    28      * @method setAreaData
       
    29      */
       
    30     setAreaData: function()
       
    31     {
       
    32         Y.StackedComboSeries.superclass.setAreaData.apply(this);
       
    33         this._stackCoordinates.apply(this);
       
    34     },
       
    35 
       
    36     /**
       
    37      * @protected
       
    38      *
       
    39      * Draws the series.
       
    40      *
       
    41      * @method drawSeries
       
    42      */
       
    43     drawSeries: function()
       
    44     {
       
    45         if(this.get("showAreaFill"))
       
    46         {
       
    47             this.drawFill.apply(this, this._getStackedClosingPoints());
       
    48         }
       
    49         if(this.get("showLines"))
       
    50         {
       
    51             this.drawLines();
       
    52         }
       
    53         if(this.get("showMarkers"))
       
    54         {
       
    55             this.drawPlots();
       
    56         }
       
    57     }
       
    58 
       
    59 }, {
       
    60     ATTRS : {
       
    61         /**
       
    62          * Read-only attribute indicating the type of series.
       
    63          *
       
    64          * @attribute type
       
    65          * @type String
       
    66          * @default stackedCombo
       
    67          */
       
    68         type: {
       
    69             value: "stackedCombo"
       
    70         },
       
    71 
       
    72         /**
       
    73          * Indicates whether a fill is displayed.
       
    74          *
       
    75          * @attribute showAreaFill
       
    76          * @type Boolean
       
    77          * @default true
       
    78          */
       
    79         showAreaFill: {
       
    80             value: true
       
    81         }
       
    82     }
       
    83 });
       
    84 
       
    85 
       
    86 }, '@VERSION@', {"requires": ["series-stacked", "series-combo"]});