2 YUI 3.13.0 (build 508226d)
3 Copyright 2013 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
8 YUI.add('series-combo-stacked', function (Y, NAME) {
11 * Provides functionality for creating a stacked combo series.
14 * @submodule series-combo-stacked
17 * The StackedComboSeries class renders a combination of lines, plots and area 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
22 * @class StackedComboSeries
23 * @extends ComboSeries
26 * @param {Object} config (optional) Configuration parameters.
27 * @submodule series-combo-stacked
29 Y.StackedComboSeries = Y.Base.create("stackedComboSeries", Y.ComboSeries, [Y.StackingUtil], {
33 * Calculates the coordinates for the series. Overrides base implementation.
37 setAreaData: function()
39 Y.StackedComboSeries.superclass.setAreaData.apply(this);
40 this._stackCoordinates.apply(this);
50 drawSeries: function()
52 if(this.get("showAreaFill"))
54 this.drawFill.apply(this, this._getStackedClosingPoints());
56 if(this.get("showLines"))
60 if(this.get("showMarkers"))
69 * Read-only attribute indicating the type of series.
73 * @default stackedCombo
80 * Indicates whether a fill is displayed.
82 * @attribute showAreaFill
93 }, '3.13.0', {"requires": ["series-stacked", "series-combo"]});