# Yahoo! UI Library

### charts 3.3.0

Yahoo! UI Library > charts > StackedComboSplineSeries.js (source view)
Search:
Filters Show Private Show Protected Show Deprecated

    /**
     * The StackedComboSplineSeries class renders a combination of splines, plots and areaspline fills in a single series. Series
     * are stacked along the value axis to indicate each series contribution to a cumulative total. Each
     * series type has a corresponding boolean attribute indicating if it is rendered. By default, all three types are
     * rendered.
     *
     * @class StackedComboSplineSeries
     * @extends StackedComboSeries
     * @uses CurveUtil
     * @constructor
     */
    Y.StackedComboSplineSeries = Y.Base.create("stackedComboSplineSeries", Y.StackedComboSeries, [Y.CurveUtil], {
        /**
    	 * @protected
         *
         * Draws the series.
         *
         * @method drawSeries
    	 */
    	drawSeries: function()
        {
            this.get("graphic").clear();
            if(this.get("showAreaFill"))
            {
                this.drawStackedAreaSpline();
            }
            if(this.get("showLines"))
            {
                this.drawSpline();
            }
            if(this.get("showMarkers"))
            {
                this.drawPlots();
            }
        }
    }, {
        ATTRS: {
            /**
             * Read-only attribute indicating the type of series.
             *
             * @attribute type
             * @type String
             * @default stackedComboSpline
             */
            type : {
                value : "stackedComboSpline"
            },

            /**
             * Indicates whether a fill is displayed.
             *
             * @attribute showAreaFill
             * @type Boolean
             * @default true
             */
            showAreaFill: {
                value: true
            }
        }
    });

Copyright © 2011 Yahoo! Inc. All rights reserved.