# Yahoo! UI Library

### charts 3.3.0

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

    /**
     * StackedAreaSeries area fills to display data showing its contribution to a whole.
     *
     * @param {Object} config (optional) Configuration parameters for the Chart.
     * @class StackedAreaSeries
     * @constructor
     * @extends AreaSeries
     * @uses StackingUtil
     */
    Y.StackedAreaSeries = Y.Base.create("stackedAreaSeries", Y.AreaSeries, [Y.StackingUtil], {
        /**
         * @protected
         *
         * Calculates the coordinates for the series. Overrides base implementation.
         *
         * @method setAreaData
         */
        setAreaData: function()
        {
            Y.StackedAreaSeries.superclass.setAreaData.apply(this);
            this._stackCoordinates.apply(this);
        },

        /**
         * @protected
         *
         * Draws the series
         *
         * @method drawSeries
         */
    	drawSeries: function()
        {
            this.get("graphic").clear();
            this.drawFill.apply(this, this._getStackedClosingPoints());
        }
    }, {
        ATTRS: {
            /**
             * Read-only attribute indicating the type of series.
             *
             * @attribute type
             * @type String
             * @default stackedArea
             */
            type: {
                value:"stackedArea"
            }
        }
    });

Copyright © 2011 Yahoo! Inc. All rights reserved.