|
602
|
1 |
YUI.add('series-areaspline-stacked', function (Y, NAME) { |
|
|
2 |
|
|
|
3 |
/** |
|
|
4 |
* Provides functionality for creating a stacked area spline series. |
|
|
5 |
* |
|
|
6 |
* @module charts |
|
|
7 |
* @submodule series-areaspline-stacked |
|
|
8 |
*/ |
|
|
9 |
/** |
|
|
10 |
* StackedAreaSplineSeries creates a stacked area chart with points data points connected by a curve. |
|
|
11 |
* |
|
|
12 |
* @class StackedAreaSplineSeries |
|
|
13 |
* @extends AreaSeries |
|
|
14 |
* @uses CurveUtil |
|
|
15 |
* @uses StackingUtil |
|
|
16 |
* @constructor |
|
|
17 |
* @param {Object} config (optional) Configuration parameters. |
|
|
18 |
* @submodule series-areaspline-stacked |
|
|
19 |
*/ |
|
|
20 |
Y.StackedAreaSplineSeries = Y.Base.create("stackedAreaSplineSeries", Y.AreaSeries, [Y.CurveUtil, Y.StackingUtil], { |
|
|
21 |
/** |
|
|
22 |
* @protected |
|
|
23 |
* |
|
|
24 |
* Draws the series. |
|
|
25 |
* |
|
|
26 |
* @method drawSeries |
|
|
27 |
*/ |
|
|
28 |
drawSeries: function() |
|
|
29 |
{ |
|
|
30 |
this._stackCoordinates(); |
|
|
31 |
this.drawStackedAreaSpline(); |
|
|
32 |
} |
|
|
33 |
}, { |
|
|
34 |
ATTRS : { |
|
|
35 |
/** |
|
|
36 |
* Read-only attribute indicating the type of series. |
|
|
37 |
* |
|
|
38 |
* @attribute type |
|
|
39 |
* @type String |
|
|
40 |
* @default stackedAreaSpline |
|
|
41 |
*/ |
|
|
42 |
type: { |
|
|
43 |
value:"stackedAreaSpline" |
|
|
44 |
} |
|
|
45 |
} |
|
|
46 |
}); |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
}, '@VERSION@', {"requires": ["series-stacked", "series-areaspline"]}); |