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-area', function (Y, NAME) {
11 * Provides functionality for creating a area series.
14 * @submodule series-area
17 * The AreaSeries class renders quantitative data on a graph by creating a fill between 0
18 * and the relevant data points.
21 * @extends CartesianSeries
24 * @param {Object} config (optional) Configuration parameters.
25 * @submodule series-area
27 Y.AreaSeries = Y.Base.create("areaSeries", Y.CartesianSeries, [Y.Fills], {
35 drawSeries: function()
37 this.drawFill.apply(this, this._getClosingPoints());
43 * Method used by `styles` setter. Overrides base implementation.
46 * @param {Object} newStyles Hash of properties to update.
49 _setStyles: function(val)
55 return Y.AreaSeries.superclass._setStyles.apply(this, [val]);
61 * Gets the default value for the `styles` attribute. Overrides
62 * base implementation.
64 * @method _getDefaultStyles
67 _getDefaultStyles: function()
69 var styles = this._mergeStyles({area:this._getAreaDefaults()}, Y.AreaSeries.superclass._getDefaultStyles());
76 * Read-only attribute indicating the type of series.
87 * Style properties used for drawing area fills. This attribute is inherited from `Renderer`. Below are the default values:
90 * <dt>color</dt><dd>The color of the fill. The default value is determined by the order of the series on the graph. The color will be
91 * retrieved from the following array:
92 * `["#66007f", "#a86f41", "#295454", "#996ab2", "#e8cdb7", "#90bdbd","#000000","#c3b8ca", "#968373", "#678585"]`
94 * <dt>alpha</dt><dd>Number between 0 and 1 that indicates the opacity of the fill. The default value is 1</dd>
110 }, '3.13.0', {"requires": ["series-cartesian", "series-fill-util"]});