src/cm/media/js/lib/yui/yui3-3.15.0/build/series-area-stacked/series-area-stacked-debug.js
changeset 602 e16a97fb364a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cm/media/js/lib/yui/yui3-3.15.0/build/series-area-stacked/series-area-stacked-debug.js	Mon Mar 10 15:19:48 2014 +0100
@@ -0,0 +1,60 @@
+YUI.add('series-area-stacked', function (Y, NAME) {
+
+/**
+ * Provides functionality for creating a stacked area series.
+ *
+ * @module charts
+ * @submodule series-area-stacked
+ */
+/**
+ * StackedAreaSeries area fills to display data showing its contribution to a whole.
+ *
+ * @class StackedAreaSeries
+ * @extends AreaSeries
+ * @uses StackingUtil
+ * @constructor
+ * @param {Object} config (optional) Configuration parameters.
+ * @submodule series-area-stacked
+ */
+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.drawFill.apply(this, this._getStackedClosingPoints());
+    }
+}, {
+    ATTRS: {
+        /**
+         * Read-only attribute indicating the type of series.
+         *
+         * @attribute type
+         * @type String
+         * @default stackedArea
+         */
+        type: {
+            value:"stackedArea"
+        }
+    }
+});
+
+
+}, '@VERSION@', {"requires": ["series-stacked", "series-area"]});