src/cm/media/js/lib/yui/yui3-3.15.0/build/series-combospline-stacked/series-combospline-stacked.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-combospline-stacked/series-combospline-stacked.js	Mon Mar 10 15:19:48 2014 +0100
@@ -0,0 +1,72 @@
+YUI.add('series-combospline-stacked', function (Y, NAME) {
+
+/**
+ * Provides functionality for creating a stacked combospline series.
+ *
+ * @module charts
+ * @submodule series-combospline-stacked
+ */
+/**
+ * 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
+ * @param {Object} config (optional) Configuration parameters.
+ * @submodule series-combospline-stacked
+ */
+Y.StackedComboSplineSeries = Y.Base.create("stackedComboSplineSeries", Y.StackedComboSeries, [Y.CurveUtil], {
+    /**
+	 * @protected
+     *
+     * Draws the series.
+     *
+     * @method drawSeries
+	 */
+	drawSeries: function()
+    {
+        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
+        }
+    }
+});
+
+
+}, '@VERSION@', {"requires": ["series-combo-stacked", "series-curve-util"]});