src/cm/media/js/lib/yui/yui_3.10.3/build/series-combospline-stacked/series-combospline-stacked-debug.js
changeset 525 89ef5ed3c48b
equal deleted inserted replaced
524:322d0feea350 525:89ef5ed3c48b
       
     1 /*
       
     2 YUI 3.10.3 (build 2fb5187)
       
     3 Copyright 2013 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.10.3', {"requires": ["series-combo-stacked", "series-curve-util"]});