1
/* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
2
YUI.add('series-area', function (Y, NAME) {
5
* Provides functionality for creating a area series.
8
* @submodule series-area
11
* The AreaSeries class renders quantitative data on a graph by creating a fill between 0
12
* and the relevant data points.
15
* @extends CartesianSeries
18
* @param {Object} config (optional) Configuration parameters.
19
* @submodule series-area
21
Y.AreaSeries = Y.Base.create("areaSeries", Y.CartesianSeries, [Y.Fills], {
29
drawSeries: function()
31
this.drawFill.apply(this, this._getClosingPoints());
37
* Method used by `styles` setter. Overrides base implementation.
40
* @param {Object} newStyles Hash of properties to update.
43
_setStyles: function(val)
49
return Y.AreaSeries.superclass._setStyles.apply(this, [val]);
55
* Gets the default value for the `styles` attribute. Overrides
56
* base implementation.
58
* @method _getDefaultStyles
61
_getDefaultStyles: function()
63
var styles = this._mergeStyles({area:this._getAreaDefaults()}, Y.AreaSeries.superclass._getDefaultStyles());
70
* Read-only attribute indicating the type of series.
81
* Style properties used for drawing area fills. This attribute is inherited from `Renderer`. Below are the default values:
84
* <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
85
* retrieved from the following array:
86
* `["#66007f", "#a86f41", "#295454", "#996ab2", "#e8cdb7", "#90bdbd","#000000","#c3b8ca", "#968373", "#678585"]`
88
* <dt>alpha</dt><dd>Number between 0 and 1 that indicates the opacity of the fill. The default value is 1</dd>
104
}, '3.9.1', {"requires": ["series-cartesian", "series-fill-util"]});